atrium-api-cc-en_UK / ch.tutteli.atrium.api.cc.en_UK / ch.tutteli.atrium.assertions.throwable.thrown.builders.ThrowableThrownBuilder

Extensions for ch.tutteli.atrium.assertions.throwable.thrown.builders.ThrowableThrownBuilder

toThrow

fun <TExpected : Throwable> ThrowableThrownBuilder.toThrow(): Unit

Makes the assertion that the thrown Throwable is of type TExpected.

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.