assertFailsWith

expect inline fun <T : Throwable> assertFailsWith(block: () -> Unit)

Asserts that a block fails with a specific exception of type T being thrown.

actual inline fun <T : Throwable> assertFailsWith(block: () -> Unit)

Asserts that a block fails with a specific exception of type T being thrown.

actual inline fun <T : Throwable> assertFailsWith(block: () -> Unit)

Asserts that a block fails with a specific exception of type T being thrown.