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

containsNot

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

Expects that the subject of the assertion (a CharSequence) does not contain expected's toString representation.

It is a shortcut for contains not value expected.

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 assertion container to support a fluent API.

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

Expects that the subject of the assertion (a CharSequence) does not contain the toString representation of the given values.

It is a shortcut for contains not 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 assertion container to support a fluent API.