doc / ch.tutteli.atrium.api.cc.infix.en_GB / containsNot

containsNot

infix fun <T : CharSequence> Assert<T>.containsNot(expected: Any): AssertionPlant<T>

Makes the assertion that the Assert.subject does not expected's toString representation.

Delegates to containsNot.

Notice that a runtime check applies which assures that only CharSequence, Number and Char are passed (this function expects 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
This plant to support a fluent API.

infix fun <T : CharSequence> Assert<T>.containsNot(values: Values<Any>): AssertionPlant<T>

Makes the assertion that the Assert.subject does not contain the toString representation of the given values.

It is a shortcut for notTo contain the Values(expected, *otherExpected).

Notice that a runtime check applies which assures that only CharSequence, Number and Char are passed (this function expects 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
This plant to support a fluent API.

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

Makes the assertion that the Assert.subject does not contain the expected value.

It is a shortcut for notTo contain value expected

Exceptions

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

Return
This plant to support a fluent API.

infix fun <E, T : Iterable<E>> Assert<T>.containsNot(values: Values<E>): AssertionPlant<T>

Makes the assertion that the Assert.subject does not contain the expected values.

It is a shortcut for notTo contain the Values(...)

Exceptions

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

Return
This plant to support a fluent API.