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

containsStrictly

fun <E, T : Iterable<E>> Assert<T>.containsStrictly(expected: E, vararg otherExpected: E): AssertionPlant<T> (source)
Deprecated: Use `containsStrictlyNullableValues` from package en_GB or `containsStrictly` from package en_GB in case you do not deal with nullable elements; will be removed with 1.0.0

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

It is a shortcut for contains.inOrder.only.values(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)
Deprecated: Use pendant from package en_GB; will be removed with 1.0.0

Makes the assertion that the Assert.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(expected, *otherExpected)

Exceptions

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

Return
This plant to support a fluent API.