doc / ch.tutteli.atrium.domain.builders.kotlin_1_3.creating / ResultAssertionsBuilder

ResultAssertionsBuilder

object ResultAssertionsBuilder : ResultAssertions

Delegates inter alia to the implementation of ResultAssertions. In detail, it implements ResultAssertions by delegating to resultAssertions which in turn delegates to the implementation via loadSingleService.

Functions

isFailure

fun <TExpected : Throwable> isFailure(assertionContainer: Expect<out Result<*>>, expectedType: KClass<TExpected>): ChangedSubjectPostStep<Throwable?, TExpected>

isSuccess

fun <E, T : Result<E>> isSuccess(assertionContainer: Expect<T>): ExtractedFeaturePostStep<T, E>