public static void StartAndRun(string fileName, int exitCode, params string[] args) { using (ProcessTester tester = new ProcessTester(fileName, args)) { tester.ExpectedExitCode = exitCode; tester.Run(); } }
public static void StartAndRun(string fileName, params string[] args) { using (ProcessTester tester = new ProcessTester(fileName, args)) { tester.ThrowOnWrongExitCode = false; tester.Run(); } }