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

isSuccess

fun <E, T : Result<E>> Expect<T>.isSuccess(): Expect<E> (source)
Deprecated: Use toBeASuccess; will be removed with 1.0.0 at the latest

Expects that the subject of this expectation (a Result) is a Success and returns an Expect for the inner type E.

Return
The newly created Expect if the given assertion is success

Since
0.9.0

fun <E, T : Result<E>> Expect<T>.isSuccess(assertionCreator: Expect<E>.() -> Unit): Expect<T> (source)
Deprecated: Use toBeASuccess; will be removed with 1.0.0 at the latest

Expects that the subject of this expectation (a Result) is a Success and that it holds all assertions the given assertionCreator creates.

Return
an Expect for the subject of this expectation.

Since
0.9.0