doc / ch.tutteli.atrium.domain.builders.creating.basic.contains

Package ch.tutteli.atrium.domain.builders.creating.basic.contains

Contains helper functions for Contains.Builder

Functions

addAssertion

fun <T : Any, B : Contains.Builder<T, *>> Contains.CheckerOption<T, *, *, B>.addAssertion(assertion: Assertion): Expect<T>
fun <E, T : Iterable<E>, S : IterableContains.SearchBehaviour> IterableContains.Builder<E, T, S>.addAssertion(assertion: Assertion): Expect<T>

Helper method which simplifies adding assertions to the assertion container which itself is stored in Contains.CheckerOption.containsBuilder.

addAssertionForAssert

fun <T : Any, B : Contains.Builder<T, *>> Contains.CheckerOption<T, *, *, B>.addAssertionForAssert(assertion: Assertion): Assert<T>
fun <E, T : Iterable<E>, S : IterableContains.SearchBehaviour> IterableContains.Builder<E, T, S>.addAssertionForAssert(assertion: Assertion): Assert<T>

Helper method which simplifies adding assertions to the assertion container which itself is stored in Contains.CheckerOption.containsBuilder.