doc / ch.tutteli.atrium.api.cc.en_GB / containsStrictly

containsStrictly

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

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

It is a shortcut for contains.inOrder.only.nullableValues(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>.containsStrictly(assertionCreator: Assert<E>.() -> Unit, vararg otherAssertionCreators: Assert<E>.() -> Unit): AssertionPlant<T> (source)

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 given) in the defined order holding the assertions created by them.

It is a shortcut for contains.inOrder.only.entries(assertionCreator, *otherAssertionCreators)

Exceptions

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

Return
This plant to support a fluent API.