/// <summary> /// Starts measurement /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Start_B_Click_1(object sender, RoutedEventArgs e) { IsReading = true; if (IsReading) { Task.Factory.StartNew(Read); } countUpTimer.Start(); Stop_B.Visibility = Visibility.Visible; Start_B.Visibility = Visibility.Hidden; Start_B_gray.Visibility = Visibility.Visible; Stop_B_gray.Visibility = Visibility.Hidden; }
public void Start(int waitSeconds) { _uut.Start(); Thread.Sleep(waitSeconds * 1010); Assert.AreEqual(waitSeconds, _uut.countedTime); }