doc / ch.tutteli.atrium.api.cc.infix.en_UK / notToBe

notToBe

infix fun <T : Any> Assert<T>.notToBe(expected: T): AssertionPlant<T>
Deprecated: Use pendant from package en_GB; will be removed with 1.0.0

Makes the assertion that the Assert.subject is not (equal to) expected.

This method might enforce in the future, that expected has to be the same type as Assert.subject. Currently the following is possible: assert(1).notToBe(1.0)

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>.notToBe(onlyEmptyAllowed: Empty): AssertionPlant<T>
Deprecated: Use pendant from package en_GB; will be removed with 1.0.0

Makes the assertion that the Assert.subject CharSequence.kotlin.text.isNotEmpty.

Parameters

onlyEmptyAllowed - Has to be Empty.

Exceptions

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

Return
This plant to support a fluent API.