Esempio n. 1
0
 public void Initialize()
 {
     Submissions.ResetSubmissions();
     TestCases.ResetTestCases();
     s1 = new SingleSubmission("21325");
     s1.AddCode(@"..\..\..\Assets\Test Required FIles\SubmissionsTest\Source.c");
     Submissions.submissions.Add(s1);
 }
        public void Initialize()
        {
            Submissions.ResetSubmissions();
            TestCases.ResetTestCases();
            s1 = new SingleSubmission("21325");
            s2 = new SingleSubmission("54324");
            s3 = new SingleSubmission("53252");
            s2.AddCode(@"..\..\..\Assets\Test Required FIles\SingleSubmissionTest\Source1.c");
            s2.AddExe(@"..\..\..\Assets\Test Required FIles\SingleSubmissionTest\Source1.exe");

            s3.AddExe(@"..\..\..\Assets\Test Required FIles\SingleSubmissionTest\Source2.exe");

            bool   isTC   = false;                        // TNC
            string input  = "Check input";                // This is a TNC and we know these vakues are incorrect output
            string output = "Check output";               // So we know the result will be true

            TestCases.OnAddTestCase(input, output, isTC); // We want the submisstion at least one currect result
            TestCases.OnAddTestCase(input, output, isTC); // We want the submisstion at least one currect result
        }
 public void AddCode_Success()
 {
     s1.AddCode(@"..\..\..\Assets\Test Required FIles\SingleSubmissionTest\Source.c");
     Assert.AreEqual(@"..\..\..\Assets\Test Required FIles\SingleSubmissionTest\Source.c", s1.codePath);
     Assert.IsTrue(s1.codeExists);
 }