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; }
public static IEnumerable <UnitTestSuite> GetSuites(LibLinphoneTester tester) { return(_unitTestDataSource.FillSuites(tester)); }
public static IEnumerable<UnitTestSuite> GetSuites(LibLinphoneTester tester) { return _unitTestDataSource.FillSuites(tester); }