Skip to content

ObjectAssertions<TSelf, T>.BeTheSameInstanceAs Method ​

Definition ​

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

c#
public AssertionsChain<TSelf, T> BeTheSameInstanceAs(T? expected);

View source

Parameters ​

NameTypeDescription
expectedTThe expected instance.

Returns ​

AssertionsChain<TSelf, T>

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