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