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

ResultAssertionsBuilder

object ResultAssertionsBuilder : ResultAssertions (source)

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(expect: Expect<out Result<*>>, expectedType: KClass<TExpected>): ChangedSubjectPostStep<Throwable?, TExpected>

isSuccess

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