doc / ch.tutteli.atrium.domain.builders.creating.collectors / collectAssertions

collectAssertions

fun <T, G : ExplanatoryAssertionGroupType, R> AssertionsOption<G, R>.collectAssertions(expect: Expect<T>, assertionCreator: Expect<T>.() -> Unit): R (source)
fun <T, G : ExplanatoryAssertionGroupType, R> AssertionsOption<G, R>.collectAssertions(maybeSubject: Option<T>, assertionCreator: Expect<T>.() -> Unit): R (source)

Collects the assertions assertionCreator creates and uses them as AssertionGroup.assertions.