fun <E, T : Iterable<E>> IterableContains.CheckerOption<E, T, InAnyOrderSearchBehaviour>.nullableValue(expected: E): AssertionPlant<T>
Finishes the specification of the sophisticated contains
assertion where the expected value shall be searched
within the Iterable.
Delegates to nullableValues(expected)
.
expected
- The value which is expected to be contained within the Iterable.
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
An Expect for the current subject of the assertion.
fun <E, T : Iterable<E>> IterableContains.Builder<E, T, InAnyOrderOnlySearchBehaviour>.nullableValue(expected: E): AssertionPlant<T>
fun <E, T : Iterable<E>> IterableContains.Builder<E, T, InOrderOnlySearchBehaviour>.nullableValue(expected: E): AssertionPlant<T>
Finishes the specification of the sophisticated contains
assertion where the Iterable needs to contain only the
expected value.
Delegates to nullableValues(expected)
.
expected
- The value which is expected to be contained within the Iterable.
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
An Expect for the current subject of the assertion.