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

toAssert

inline fun <reified 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 an Assert<R> lambda with receiver using the given assertionCreator (passing in the argument).

Returns
The mapped first and others.