toExpect

inline fun <R> toExpect(crossinline assertionCreator: Expect<R>.(T) -> Unit): Pair<Expect<R>.() -> Unit, Array<out Expect<R>.() -> Unit>>(source)

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