doc / ch.tutteli.atrium.api.fluent.en_GB / containsNot

containsNot

val <T : CharSequence> Expect<T>.containsNot: NotCheckerOption<T, NotSearchBehaviour> (source)

Creates a CharSequenceContains.Builder based on this Expect which allows to define more sophisticated contains not assertions.

Return
The newly created builder.

fun <T : CharSequence> Expect<T>.containsNot(expected: CharSequenceOrNumberOrChar, vararg otherExpected: CharSequenceOrNumberOrChar): Expect<T> (source)

Expects that the subject of the assertion (a CharSequence) does not contain expected's toString representation and neither one of the otherExpected's toString representation (if given).

It is a shortcut for containsNot.values(expected, *otherExpected).

Notice that a runtime check applies which assures that only CharSequence, Number and Char are passed (this function expects CharSequenceOrNumberOrChar (which is a typealias for Any for your convenience, so that you can mix String and Int for instance).

Exceptions

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>> Expect<T>.containsNot(expected: E, vararg otherExpected: E): Expect<T> (source)

Expects that the subject of the assertion (an Iterable) does not contain the expected value and neither one of the otherExpected values (if given).

It is a shortcut for containsNot.values(expected, *otherExpected)

Exceptions

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

Return
An Expect for the current subject of the assertion.