inline fun <reified E, T : Iterable<E>> Builder<E, T, InAnyOrderOnlySearchBehaviour>.elementsOf(expectedIterable: Iterable<E>): Expect<T>
Finishes the specification of the sophisticated contains assertion where all elements in
expectedIterable need to be contained in Iterable where it does not matter in which order but only as
many entries should be returned by the Iterable as values defined.
Delegates to values.
Note that we might change the signature of this function with the next version which will cause a binary backward compatibility break (see #292 for more information)
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
The Expect for which the assertion was built to support a fluent API.
Since
0.9.0
inline fun <reified E, T : Iterable<E>> Builder<E, T, InOrderOnlySearchBehaviour>.elementsOf(expectedIterable: Iterable<E>): Expect<T>
Finishes the specification of the sophisticated contains assertion where all elements of the expectedIterable
shall be searched within the Iterable
(if given) in the specified order.
Delegates to values.
Note that we might change the signature of this function with the next version which will cause a binary backward compatibility break (see #292 for more information)
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
The Expect for which the assertion was built to support a fluent API.
Since
0.9.0