atrium-api-fluent-en_GB-jvm / ch.tutteli.atrium.api.fluent.en_GB / containsExactlyElementsOf

containsExactlyElementsOf

inline fun <reified E, T : Iterable<E>> <ERROR CLASS><T>.containsExactlyElementsOf(expectedIterable: Iterable<E>): <ERROR CLASS><T> (source)

Expects that the subject of the assertion (an Iterable) contains only elements of expectedIterable in same order

It is a shortcut for 'contains.inOrder.only.elementsOf(anotherList)'

Exceptions

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

Return
An Expect for the current subject of the assertion.

Since
0.11.0