private void PushButton() { if (startButton.Text == "запуск") { monitor.Start(); startButton.Text = "стоп"; } else { monitor.Stop(); startButton.Text = "запуск"; } }
public void Stop_NormalState_EnableRaisingEventsShouldBeFalse() { SUT.Stop(); Assert.False(watcher.EnableRaisingEvents); }