assertNull

fun assertNull(actual: Any?, message: String? = null)(source)

Asserts that the actual value is null, with an optional message.

Since Kotlin

1.0