doc / ch.tutteli.atrium.api.fluent.en_GB.kotlin_1_3 / isFailure

isFailure

inline fun <reified TExpected : Throwable> Expect<out Result<*>>.isFailure(): Expect<TExpected> (source)
Deprecated: Use toBeAFailure; will be removed with 1.0.0 at the latest

Expects that the subject of this expectation (a Result) is a Failure and that it encapsulates an exception of type TExpected.

Return
An Expect with the new type TExpected

Since
0.9.0

inline fun <reified TExpected : Throwable> Expect<out Result<*>>.isFailure(noinline assertionCreator: Expect<TExpected>.() -> Unit): Expect<TExpected> (source)
Deprecated: Use toBeAFailure; will be removed with 1.0.0 at the latest

Expects that the subject of this expectation (a Result) is a Failure, it encapsulates an exception of type TExpected and that the exception holds all assertions the given assertionCreator creates.

Return
An Expect with the new type TExpected

Since
0.9.0