Skip to content

ObjectAssertions<T>.NotBeTheSameInstanceAs Method

Definition

Asserts that the value is not the same instance as the expected value.

public ObjectAssertionsChain<T> NotBeTheSameInstanceAs(T? expected);

Parameters

Name Type Description
expected T The instance that is not expected.

Returns

ObjectAssertionsChain<T>

An ObjectAssertionsChain<T> for chaining further assertions.