val <T : CharSequence> Expect<T>.containsNot: NotCheckerStep<T, NotSearchBehaviour>
(source)Starts a sophisticated contains
assertion building process based on this Expect and already chooses a
NotCheckerStep.
expect("ABC").containsNot.value("X")
fails {
expect("ABC").containsNot.value("B")
}
Return
The newly created builder.
fun <T : CharSequence> Expect<T>.containsNot(expected: CharSequenceOrNumberOrChar, vararg otherExpected: CharSequenceOrNumberOrChar): Expect<T>
(source)Expects that the subject of this
expectation (a CharSequence) does not contain expected's toString representation
and neither one of the otherExpected's toString representation (if given).
It is a shortcut for containsNot.values(expected, *otherExpected)
.
Notice that a runtime check applies which assures that only CharSequence, Number and Char are passed. This function expects CharSequenceOrNumberOrChar (which is a typealias for Any) for your convenience, so that you can mix String and Int for instance.
expect("ABC").containsNot("X")
expect("ABC").containsNot("X", 'Y', 1)
fails {
expect("ABC").containsNot("B")
}
fails {
expect("ABC").containsNot("B", "X")
}
Return
an Expect for the subject of this
expectation.
fun <E, T : Iterable<E>> Expect<T>.containsNot(expected: E, vararg otherExpected: E): Expect<T>
(source)Expects that the subject of this
expectation (an Iterable) has at least one element and
that it does not contain the expected value and neither one of the otherExpected values (if given).
It is a shortcut for containsNot.values(expected, *otherExpected)
Return
an Expect for the subject of this
expectation.