toBeTheSameInstanceAs
context(assertionScope: AssertionScope)
infix fun Expect<Any?>.toBeTheSameInstanceAs(expected: Any?)(source)
infix fun Expect<Any?>.toBeTheSameInstanceAs(expected: Any?)(source)
Asserts that the exposed value is the same instance as the expected value using === comparison.
This performs referential equality comparison, checking that both references point to the exact same object in memory.
Receiver
The Expect instance whose value will be compared.
Context Parameters
assertionScope
The assertion scope that will consume the assertion result.
Parameters
expected
The expected instance to compare against.