public void Kill_throws_expected_exception_if_process_not_started() { // Arrange var instance = new ProcessWrap(); // Act instance.Kill(); }
public void Kill_throws_expected_exception_if_process_not_started() { // Arrange var instance = new ProcessWrap(); // Act var ex = Assert.Throws <System.InvalidOperationException>(() => instance.Kill()); Assert.That(ex.Message, Is.EqualTo("No process is associated with this object.")); }