doc / ch.tutteli.atrium.domain.builders.utils / ArgumentToNullOrMapperBuilder / toAssert

toAssert

inline fun <R : Any> toAssert(crossinline assertionCreator: Assert<R>.(T) -> Unit): Pair<(Assert<R>.() -> Unit)?, Array<(Assert<R>.() -> Unit)?>>
Deprecated: Switch from Assert to Expect and use toExpect instead; will be removed with 1.0.0

Maps each argument to null if it is already null and if not, then to an AssertionPlantNullable<R> lambda with receiver by using the given assertionCreator (passing in the argument).

Returns
The mapped arguments.