doc / ch.tutteli.atrium.api.cc.en_UK / containsNot

containsNot

val <T : CharSequence> Assert<T>.containsNot: CharSequenceContainsNotCheckerBuilder<T, CharSequenceContainsNotSearchBehaviour>

Creates a CharSequenceContainsBuilder based on this AssertionPlant which allows to define more sophisticated contains not assertions.

Return
The newly created builder.

fun <T : CharSequence> Assert<T>.containsNot(expected: Any, vararg otherExpected: Any): AssertionPlant<T>

Makes the assertion that AssertionPlant.subject does not contain expected's toString representation and neither one of the otherExpected's toString representation (if defined).

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

Exceptions

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

Return
This plant to support a fluent API.

fun <E, T : Iterable<E>> Assert<T>.containsNot(expected: E, vararg otherExpected: E): AssertionPlant<T>

Makes the assertion that AssertionPlant.subject does not contain expected and neither one of the otherExpected (if defined).

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

Exceptions

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

Return
This plant to support a fluent API.