示例#1
0
        public void SaveDetailedResultTest()
        {
            Submissions.SaveDetailedResults(@"..\..\..\Assets\Test Required FIles\SubmissionsTest\ZipForTest.zip");
            string createdDirectory       = @"..\..\..\Assets\Test Required FIles\SubmissionsTest\Detailed Results HETS - Azo";
            bool   createdDirectoryExists = Directory.Exists(createdDirectory);

            Assert.IsTrue(createdDirectoryExists);

            string createdFile   = createdDirectory + @"\" + Submissions.submissions[0].submitID + ".txt";
            bool   txtFileExists = File.Exists(createdFile);

            Assert.IsTrue(txtFileExists);
        }
 public static void OnSaveDetailedResults(TextBox txtArchivePath)
 {
     Submissions.SaveDetailedResults(txtArchivePath.Text);
 }