fun <E, T : Optional<E>> <ERROR CLASS><T>.isPresent(): <ERROR CLASS><E>
Expects that the subject of the assertion (an Optional) is present and returns an Expect for the inner type E.
Shortcut for more or less something like feature(Optional<T>::get) but with error handling; yet it
depends on the underlying implementation though.
AssertionError - Might throw an AssertionError if the given assertion is not a success.
Return
The newly created Expect for the inner type E.
Since
0.9.0
fun <E, T : Optional<E>> <ERROR CLASS><T>.isPresent(assertionCreator: <ERROR CLASS><E>.() -> Unit): <ERROR CLASS><T>
Expects that the subject of the assertion (an Optional) is present and that it holds all assertions the given assertionCreator creates.
AssertionError - Might throw an AssertionError if the given assertions are not success.
Return
An Expect for the current subject of the assertion.
Since
0.9.0