Skip to content

ObjectAssertions<TSelf, T>.NotBeOfType Method ​

Definition ​

Asserts that the value is not assignable to the specified type.

c#
public AssertionsChain<TSelf, T> NotBeOfType<TOther>();

View source

Type Parameters ​

NameDescription
TOtherThe type that is not expected.

Returns ​

AssertionsChain<TSelf, T>

An AssertionsChain<TAssertions, T> for chaining further assertions.