doc / ch.tutteli.atrium.api.fluent.en_GB / containsElementsOf

containsElementsOf

inline fun <reified E, T : Iterable<E>> Expect<T>.containsElementsOf(expectedIterableLike: IterableLike): Expect<T> (source)
Deprecated: Use toContainElementsOf; will be removed with 1.0.0 at the latest

Expects that the subject of this expectation (an Iterable) contains all elements of expectedIterableLike.

It is a shortcut for contains.inAnyOrder.atLeast(1).elementsOf(expectedIterable)

Notice that a runtime check applies which assures that only Iterable, Sequence or one of the Array types are passed. This function expects IterableLike (which is a typealias for Any) to avoid cluttering the API.

Parameters

expectedIterableLike - The IterableLike whose elements are expected to be contained within this Iterable.

Exceptions

IllegalArgumentException - in case expectedIterableLike is not an Iterable, Sequence or one of the Array types or the given expectedIterableLike does not have elements (is empty).

Return
an Expect for the subject of this expectation.

Since
0.13.0