Esempio n. 1
0
 static void RunTest(string path)
 {
     using (StreamReader sr = new StreamReader(path))
     {
         string line = sr.ReadLine();
         while (line != null)
         {
             var custom = serialiser.Convert.FromJson(line);
             if (custom is Dataset)
             {
                 Tests++;
                 Dataset    dataset    = custom as Dataset;
                 TestResult testResult = dataset.CheckTests();
                 if (testResult.Status == BH.oM.Test.TestStatus.Pass)
                 {
                     Passes++;
                 }
                 else
                 {
                     FailingDataset.Add(path);
                 }
             }
             line = sr.ReadLine();
         }
     }
 }