doesNotContain

fun Assert<Array<*>>.doesNotContain(element: Any?)

Asserts the array does not contain the expected element, using !in.

See also


fun Assert<CharSequence>.doesNotContain(expected: CharSequence, ignoreCase: Boolean = false)

Asserts the char sequence does not contain the specified char sequence.

Parameters

ignoreCase

true to compare ignoring case, the default if false.


fun Assert<CharSequence>.doesNotContain(vararg expected: CharSequence, ignoreCase: Boolean = false)

Asserts the char sequence does not contain the specified char sequence(s).

Parameters

ignoreCase

true to compare ignoring case, the default if false.


fun Assert<CharSequence>.doesNotContain(expected: Iterable<CharSequence>, ignoreCase: Boolean = false)

Asserts the char sequence does not contain the specified char sequences.

Parameters

ignoreCase

true to compare ignoring case, the default if false.


fun Assert<Iterable<*>>.doesNotContain(element: Any?)

Asserts the iterable does not contain the expected element, using !in.

See also


fun <K, V> Assert<Map<K, V>>.doesNotContain(key: K, value: V)
fun <K, V> Assert<Map<K, V>>.doesNotContain(element: Pair<K, V>)

Asserts the map does not contain the expected key-value pair.

See also


fun Assert<Sequence<*>>.doesNotContain(element: Any?)

Asserts the sequence does not contain the expected element, using !n.

See also