示例#1
0
 private IEnumerable <UnitTestSuite> FillSuites(LibLinphoneTester 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);
 }
 private IEnumerable<UnitTestSuite> FillSuites(LibLinphoneTester 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;
 }
示例#3
0
 public static IEnumerable <UnitTestSuite> GetSuites(LibLinphoneTester tester)
 {
     return(_unitTestDataSource.FillSuites(tester));
 }
 public static IEnumerable<UnitTestSuite> GetSuites(LibLinphoneTester tester)
 {
     return _unitTestDataSource.FillSuites(tester);
 }