shouldNotEqual

Verify that two values are not the same.

void
shouldNotEqual
(
V
E
)
(
scope auto ref V value
,
scope auto ref E expected
,
string file = __FILE__
,
size_t line = __LINE__
)

Throws

UnitTestException on failure

Examples

shouldNotEqual(true, false);
shouldNotEqual(1, 2);
shouldNotEqual("f", "b");
shouldNotEqual([2, 3], [2, 3, 4]);
shouldNotEqual(1.0, 2.0);

Meta