doc / ch.tutteli.atrium.api.infix.en_GB / isNotIn

isNotIn

inline infix fun <reified T> Expect<T>.isNotIn(expected: IterableLike): Expect<T>

Expects that the subject of the assertion is not (equal to) any value of expected.

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.

Exceptions

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

IllegalArgumentException - in case the iterable is empty.

Return
An Expect for the current subject of the assertion.

Since
0.13.0