isNotInstanceOf

inline fun <T : Any> Assert<Any>.isNotInstanceOf()

Asserts the value is not an instance of the expected kotlin class. Both assertThat("test").isNotInstanceOf<String>() and assertThat("test").isNotInstanceOf<String>() fail.

See also


fun <T : Any> Assert<T>.isNotInstanceOf(kclass: KClass<out T>)

Asserts the value is not an instance of the expected kotlin class. Both assertThat("test").isNotInstanceOf(String::class) and assertThat("test").isNotInstanceOf(Any::class) fail.

See also

fun <T : Any> Assert<T>.isNotInstanceOf(jclass: Class<out T>)

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