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

            Assert.AreEqual(expectedExitCode, actualExitCode);
        }