public void RunProgramTest(String program, String arguments, String Input, String expectedOutput, Int32 expectedExitCode) { ProgramReturnValues retval = ProgramFunctions.RunProgram(program, arguments, Input); Assert.AreEqual(expectedExitCode, retval.ExitCode); Assert.AreEqual(expectedOutput, retval.StdOutput); }
public void RunProgramTest(String program, String arguments, Int32 expectedExitCode) { Int32 actualExitCode = ProgramFunctions.RunProgram(program, arguments); Assert.AreEqual(expectedExitCode, actualExitCode); }