fun <T : Any> Assert<T>.isNotInstanceOf(kclass: KClass<out T>): Unit
Platform and version requirements: Common
Asserts the value is not an instance of the expected kotlin class. Both
assertThat("test").isNotInstanceOf(String::class) and assertThat("test").isNotInstanceOf(Any::class) fails.
See Also
fun <T : Any> <ERROR CLASS><T>.isNotInstanceOf(jclass: Class<out T>): <ERROR CLASS>
Platform and version requirements: JVM
Asserts the value is not an instance of the expected java class. Both assertThat("test").isNotInstanceOf(String::class)
and assertThat("test").isNotInstanceOf(Any::class) fails.
See Also