notToBeTheSameInstanceAs

context(assertionScope: AssertionScope)
infix fun Expect<Any?>.notToBeTheSameInstanceAs(expected: Any?)(source)

Asserts that the exposed value is not the same instance as the expected value using !== comparison.

This performs referential equality comparison, checking that the references do not 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 instance that the exposed value should not be the same as.