fun <T> Expect<T>.toBe(expected: T): Expect<T>
(source)
Expects that the subject of the assertion is (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.
@JvmName("toBeNull") fun <T : BigDecimal> Expect<T?>.toBe(expected: Nothing?): Expect<T?>
(source)
Expects that the subject of the assertion (a BigDecimal) is null
.
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
An Expect for the current subject of the assertion.