示例#1
0
        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);
        }
示例#2
0
        public void RunProgramTest(String program, String arguments, Int32 expectedExitCode)
        {
            Int32 actualExitCode = ProgramFunctions.RunProgram(program, arguments);

            Assert.AreEqual(expectedExitCode, actualExitCode);
        }