doc / ch.tutteli.atrium.logic.creating.collectors

Package ch.tutteli.atrium.logic.creating.collectors

Contains helper functions to collection Assertions.

Functions

collectAssertions

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

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