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); }
/// <summary> /// The create automatically. /// </summary> /// <returns> /// The <see cref="bool"/>. /// </returns> public static bool IsProjectCreated() { Log.Enter(typeof(Project), MethodBase.GetCurrentMethod().Name); bool result = ProgramFunctions.IsMenuAvailable(); result &= DtmFunctions.IsMenuAvailable(); result &= AdditionalFunctions.IsMenuAvailable(); result &= DeviceReport.IsMenuAvailable(); System.Threading.Thread.Sleep(10000); return(result); }
public void RunProgramTest(String program, String arguments, Int32 expectedExitCode) { Int32 actualExitCode = ProgramFunctions.RunProgram(program, arguments); Assert.AreEqual(expectedExitCode, actualExitCode); }