ObjectAssertions<TSelf, T>.NotBeTheSameInstanceAs Method
Definition
Asserts that the value is not the same instance as the expected value.
c#
public AssertionsChain<TSelf, T> NotBeTheSameInstanceAs(T? expected);Parameters
| Name | Type | Description |
|---|---|---|
expected | T | The instance that is not expected. |
Returns
An AssertionsChain<TAssertions, T> for chaining further assertions.