assertFails

@SinceKotoolsAssert(version = "2.1")
inline fun assertFails(block: () -> Unit): Throwable

Asserts that the block function throws an error and returns this error.