infix fun <T> T.shouldNotBeIn(collection: Collection<T>): Unit
Verifies that this element is NOT any of collection
Assertion to check that this element is not any of collection. This assertion checks by value, and not by reference, therefore any instance with same value must not be in collection, or this will fail.
An empty collection will always fail. If you need to check for empty collection, use Collection.shouldBeEmpty
See Also
fun <T> T.shouldNotBeIn(vararg any: T): Unit
Verifies that this element is NOT any of any
Assertion to check that this element is not any of any. This assertion checks by value, and not by reference, therefore any instance with same value must not be in any, or this will fail.
An empty collection will always fail. If you need to check for empty collection, use Collection.shouldBeEmpty
See Also