Esempio n. 1
0
 public void Timer_TimeExpires()
 {
     _timer = new BlindTimer(1);
     _timer.Start();
     Thread.Sleep(5000);
     Assert.AreEqual(0, _timer.SecondsRemaining());
 }
Esempio n. 2
0
 public void Timer_CanStart()
 {
     _timer = new BlindTimer(10);
     _timer.Start();
     Thread.Sleep(1100);
     Assert.AreEqual(9, _timer.SecondsRemaining());
 }
Esempio n. 3
0
 public BlindController(Blind blind)
 {
     BlindTimer = new BlindTimer((Blind.Interval * 60 * 1000));
 }