advanceTime

fun advanceTime(duration: Duration, expect: Expectations<S>.() -> Unit? = null)

Moves the time on by duration, then sends the aggregate each command it scheduled for itself that is due by then, earliest first, as the runtime would. Without expect it never fails, whether or not a command was due. expect checks the outcome of the last one sent, and fails when none was due: use expectNothingDue to show that none is, after a schedule was cancelled, say.