public UnitTestCase(UnitTestSuite suite, string name)
 {
     _suite   = new WeakReference(suite);
     Name     = name;
     Selected = false;
     State    = UnitTestCaseState.NotRun;
     Traces   = new ObservableCollection <OutputTrace>();
 }
Ejemplo n.º 2
0
 public UnitTestCase(UnitTestSuite suite, string name)
 {
     _suite = new WeakReference(suite);
     Name = name;
     Selected = false;
     State = UnitTestCaseState.NotRun;
     Traces = new ObservableCollection<OutputTrace>();
 }
 private IEnumerable <UnitTestSuite> FillSuites(NativeTester tester)
 {
     if (this.Suites.Count != 0)
     {
         return(this.Suites);
     }
     for (int i = 0; i < tester.nbTestSuites(); i++)
     {
         UnitTestSuite suite = new UnitTestSuite(tester.testSuiteName(i));
         for (int j = 0; j < tester.nbTests(suite.Name); j++)
         {
             suite.Cases.Add(new UnitTestCase(suite, tester.testName(suite.Name, j)));
         }
         this.Suites.Add(suite);
     }
     return(this.Suites);
 }
Ejemplo n.º 4
0
 private IEnumerable<UnitTestSuite> FillSuites(BelleSipTester tester)
 {
     if (this.Suites.Count != 0) return this.Suites;
     for (int i = 0; i < tester.nbTestSuites(); i++)
     {
         UnitTestSuite suite = new UnitTestSuite(tester.testSuiteName(i));
         for (int j = 0; j < tester.nbTests(suite.Name); j++)
         {
             suite.Cases.Add(new UnitTestCase(suite, tester.testName(suite.Name, j)));
         }
         this.Suites.Add(suite);
     }
     return this.Suites;
 }