예제 #1
0
 public void RunTimer()
 {
     _vocabularyMode.AddOneSecond();
     if (_vocabularyMode.TimeText == DEAD_LINE)
     {
         _isTimeUp = true;
     }
 }
예제 #2
0
 public void RestTimerTest()
 {
     VocabularyMode target = new VocabularyMode(); // TODO: 初始化為適當值
     for(int i =0;i<4324;i++)
         target.AddOneSecond();
     target.RestTimer();
     Assert.AreEqual("00:00:00", target.TimeText);
 }