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

toAssert

inline fun <reified R : Any> toAssert(crossinline assertionCreator: Assert<R>.(T) -> Unit): <ERROR CLASS><Assert<R>.() -> Unit, Array<Assert<R>.() -> Unit>> (source)

Maps each argument to an Assert<R> lambda with receiver using the given assertionCreator (passing in the argument).

Returns
The mapped first and others.