ObjectAssertions<TSelf, T>.NotBeOfType Method
Definition
Asserts that the value is not assignable to the specified type.
c#
public AssertionsChain<TSelf, T> NotBeOfType<TOther>();Type Parameters
| Name | Description |
|---|---|
TOther | The type that is not expected. |
Returns
An AssertionsChain<TAssertions, T> for chaining further assertions.