infix fun <T : Any> Expect<T?>.toBeNullIfNullGivenElse(assertionCreatorOrNull: (Expect<T>.() -> Unit)?): Expect<T?>
(source)
Expects that the subject of this
expectation is either null
in case assertionCreatorOrNull
is null
or is not null
and holds all assertions assertionCreatorOrNull creates.
Return
an Expect for the subject of this
expectation.