コード例 #1
0
 public void Count_theInterruptiions()
 {
     Pomodoro target = new Pomodoro(1254); // TODO: Initialize to an appropriate value
     target.Start();
     target.Pause();
     target.Start();
     Assert.AreEqual(1, target.Interruptions);
 }
コード例 #2
0
 public void Stop_WithOutStart()
 {
     Pomodoro target = null;
     try
     {
         target = new Pomodoro(); // TODO: Initialize to an appropriate value
         target.Stop();
         Assert.Fail("Exception is not thrown.");
     }
     catch (Exception exp) { Assert.IsTrue(0 != target.Minutes); }
 }
コード例 #3
0
 public void Constructor_WithOutMinutes()
 {
     Pomodoro target = new Pomodoro(); // TODO: Initialize to an appropriate value
     Assert.AreEqual(25 * 60, target.Minutes);
 }