assertk.assertions / doesNotContain

doesNotContain

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

Platform and version requirements: Common

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

See Also

contains

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

Platform and version requirements: Common

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

See Also

contains

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

Platform and version requirements: Common


fun <K, V> Assert<Map<K, V>>.doesNotContain(element: <ERROR CLASS><K, V>): Unit

Platform and version requirements: Common

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

See Also

contains

fun Assert<String>.doesNotContain(other: CharSequence, ignoreCase: Boolean = false): Unit

Platform and version requirements: Common

Asserts the string does not contain the specified string.

Parameters

ignoreCase - true to compare ignoring case, the default if false.