示例#1
0
 public void then_fails_if_stop_attending_not_attended_variable()
 {
     driver.AddVariable(new IntegerVariable(1, "Var1"));
     driver.AddVariable(new IntegerVariable(2, "Var2"));
     driver.StartAttendingVariable(1);
     driver.StopAttendingVariable(2);
 }
示例#2
0
 public void then_driver_stop_timer_if_stop_attending_variables()
 {
     driver.StartAttendingVariable(1);
     driver.Start();
     timerStub.Started.ShouldBeTrue();
     driver.StopAttendingVariable(1);
     timerStub.Started.ShouldBeFalse();
 }