Ejemplo n.º 1
0
 public void StartStopImmediately()
 {
     TimeMonitor timer = new TimeMonitor();
     timer.Start();
     timer.Stop();
     Assert.LowerEqualThan(0, timer.Duration);
 }
Ejemplo n.º 2
0
 public void StartStopShowValues()
 {
     TimeMonitor timer = new TimeMonitor();
     timer.Start();
     Random rnd = new Random();
     for (int i = 0; i < 10000; ++i)
         rnd.NextDouble();
     timer.Stop();
     TypeHelper.ShowPropertyValues(timer);
 }
Ejemplo n.º 3
0
 public void StopBeforeStart()
 {
     TimeMonitor timer = new TimeMonitor();
     timer.Stop();
 }
Ejemplo n.º 4
0
 public void ShowValuesBeforeStartStop()
 {
     TimeMonitor timer = new TimeMonitor();
     TypeHelper.ShowPropertyValues(timer);
 }
Ejemplo n.º 5
0
 public void Constructor()
 {
     TimeMonitor timer = new TimeMonitor();
 }
Ejemplo n.º 6
0
 public CountDownTimer(double maxDuration)
 {
     this.maxDuration = maxDuration;
     this.timer = new TimeMonitor();
     timer.Start();
 }