ExpectNot.toBeOfType

Checks if received is a TExpected or a sub-type of it. If it is, a FailingExpectationException is thrown.

Note: null is considered not to be a sub-type of any class or interface.

struct ExpectNot(TReceived)
void
toBeOfType
(
TExpected
)
()
if (
(
is(TExpected == class) ||
is(TExpected == interface)
)
&&
(
is(TReceived == class) ||
is(TReceived == interface)
)
)

Meta