Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public void ShouldStartProcess()
 {
     var result = new StartProcessResult(new ProcessStartInfo("calc.exe"), false);
     result.Execute(RequestBuilder.CreateRequest().BuildControllerContext());
     Assert.IsNotNull(result.StartedProcess);
     result.StartedProcess.Kill();
 }