fun <TExpected : Throwable> ThrowableThrownBuilder.toThrow(): Unit
Makes the assertion that the thrown Throwable is of type TExpected. infix fun <TExpected : Throwable> ThrowableThrownBuilder.toThrow(assertionCreator: AssertionPlant<TExpected>.() -> Unit): Unit
Makes the assertion that the thrown Throwable is of type TExpected and it assertionCreator which are checked additionally as well. |