doc / ch.tutteli.atrium.api.cc.de_CH / enthaeltStrikt

enthaeltStrikt

fun <E, T : Iterable<E>> Assert<T>.enthaeltStrikt(expected: E, vararg otherExpected: E): AssertionPlant<T>

Makes the assertion that AssertionPlant.subject contains only expected and the otherExpected (if defined) in the defined order.

It is a shortcut for enthaelt.inGegebenerReihenfolge.nur.objekte(expected, *otherExpected)

Exceptions

AssertionError - Might throw an AssertionError if the assertion made is not correct.

Return
This plant to support a fluent API.

fun <E : Any, T : Iterable<E>> Assert<T>.enthaeltStrikt(assertionCreator: Assert<E>.() -> Unit, vararg otherAssertionCreators: Assert<E>.() -> Unit): AssertionPlant<T>

Makes the assertion that AssertionPlant.subject contains only an entry holding the assertions created by the assertionCreator and an additional entry for each otherAssertionCreators (if defined) in the defined order holding the assertions created by them.

It is a shortcut for enthaelt.inGegebenerReihenfolge.nur.eintraege(expected, *otherExpected)

Exceptions

AssertionError - Might throw an AssertionError if the assertion made is not correct.

Return
This plant to support a fluent API.