inline fun <reified E, T : Iterable<E>> Expect<T>.containsElementsOf(expectedIterable: Iterable<E>): Expect<T>
(source)
Expects that the subject of the assertion (an Iterable) contains all elements of expectedIterable.
It is a shortcut for contains.inAnyOrder.atLeast(1).elementsOf(expectedIterable)
expectedIterable
- The Iterable whose elements are expected to be contained within this Iterable.
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
IllegalArgumentException
- in case the given expectedIterable does not have elements (is empty).
Return
An Expect for the current subject of the assertion.
Since
0.11.0