infix fun <T> Expect<T>.notToBe(expected: T): Expect<T>
Expects that the subject of the assertion is not (equal to) expected.
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
An Expect for the current subject of the assertion.
infix fun <T : CharSequence> Expect<T>.notToBe(empty: empty): Expect<T>
Expects that the subject of the assertion (a CharSequence) CharSequence.kotlin.text.isNotEmpty.
empty
- Use the pseudo-keyword empty
.
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>.notToBe(blank: blank): Expect<T>
Expects that the subject of the assertion (a CharSequence) CharSequence.kotlin.text.isNotBlank.
blank
- Use the pseudo-keyword blank
.
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
This assertion container to support a fluent API.
infix fun <T : Path> Expect<T>.notToBe(existing: existing): Expect<T>
Expects that the subject of the assertion (a Path) does not exist; meaning that there is no file system entry at the location the Path points to.
This assertion resolves symbolic links. Therefore, if a symbolic link exists at the location the subject points to, then the search will continue at that location.
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
An Expect for the current subject of the assertion.
Since
0.12.0