public void Execute() { var state = new State(); var test = 0; var sequence = new Execute(_ => test++); for (var i = 1; i <= 100; ++i) { Assert.Equal(RoutineStatus.Success, sequence.Act(state)); Assert.Equal(i, test); state.Reset(); } }