public void ShouldWaitForExitIfAsked() { var result = new StartProcessResult(new ProcessStartInfo("xcopy"), true); result.Execute(RequestBuilder.CreateRequest().BuildControllerContext()); Assert.IsNotNull(result.StartedProcess); Assert.IsTrue(result.StartedProcess.HasExited); }
public void ShouldStartProcess() { var result = new StartProcessResult(new ProcessStartInfo("calc.exe"), false); result.Execute(RequestBuilder.CreateRequest().BuildControllerContext()); Assert.IsNotNull(result.StartedProcess); result.StartedProcess.Kill(); }