public void Timeout_WithDeepNestedChildProcess() { string parentProcess = GetTestProcess("TestParentProcess.exe"); string hangingProcess = GetTestProcess("TestHangingProcess.exe"); string args = ProcessArgumentsFormatter.Format( parentProcess, parentProcess, parentProcess, parentProcess, parentProcess, parentProcess, parentProcess, parentProcess, parentProcess, hangingProcess, SixtySeconds ); Assert.Throws <ProcessTimeoutException>( () => { m_runner.Run( parentProcess, args, TimeSpan.FromSeconds(2) ); } ); }
public void Timeout_WithDeepNestedChildProcess() { string parentProcess = GetTestProcess("TestParentProcess.exe"); string hangingProcess = GetTestProcess("TestHangingProcess.exe"); string args = ProcessArgumentsFormatter.Format( parentProcess, parentProcess, parentProcess, parentProcess, parentProcess, parentProcess, parentProcess, parentProcess, parentProcess, hangingProcess, SixtySeconds ); Assert.ThrowsAsync <ProcessTimeoutException>( () => ProcessRunner.RunAsync( Environment.CurrentDirectory, parentProcess, args, TimeSpan.FromSeconds(2) ) ); }