expectFinished

fun expectFinished(check: (State) -> Unit = {}): State

Checks that the run completed next, and passes its last state to check.

Return

the state the run completed with.