assertNotSame

fun <T> assertNotSame(illegal: T, actual: T, message: String? = null)(source)

Asserts that actual is not the same instance as illegal, with an optional message.

Since Kotlin

1.0

fun <T> assertNotSame(illegal: T, actual: T, lazyMessage: () -> String)(source)

Asserts that actual is not the same instance as illegal, with an error message generated by the lazyMessage lambda otherwise.

Since Kotlin

2.4