public void TimerVar_TestTimerInMin() { //Arrange VariableTimer variableTimer = new VariableTimer(); variableTimer.TimerUnit = VariableTimer.eTimerUnit.Minutes; //Act variableTimer.StartTimer(); Thread.Sleep(1); //wait for 1 ms //Assert string restVal = variableTimer.Value; Assert.IsNotNull(restVal); }
public void TimerVar_TestTimerInSec() { //Arrange VariableTimer variableTimer = new VariableTimer(); variableTimer.TimerUnit = VariableTimer.eTimerUnit.Seconds; //Act variableTimer.StartTimer(); Thread.Sleep(2000); //wait for 2 seconds //Assert string restVal = variableTimer.Value; Assert.IsNotNull(restVal); }