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

isNoneOf

fun <T> Expect<T>.isNoneOf(expected: T, vararg otherValues: T): Expect<T>

Expects that the subject of the assertion is not (equal to) expected and otherValues.

expect(99).isNoneOf(1, 2, 3, 4)

fails {
    expect(1).isNoneOf(1, 2, 3, 4)
}

Exceptions

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

Return
An Expect for the current subject of the assertion.

Since
0.13.0