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++)
         {
             String test = tester.testName(suite.Name, j);
             if (test.Length > 0)
             {
                 suite.Cases.Add(new UnitTestCase(suite, test));
             }
         }
         this.Suites.Add(suite);
     }
     return(this.Suites);
 }