public UnitTestResult RunTestSuite (XUnitAssemblyTestSuite rootSuite, XUnitTestSuite testSuite, TestContext context) { var testCases = new List<XUnitTestCase> (); CollectTestCases (testCases, testSuite); return Run (testCases, rootSuite, testSuite, context); }
public UnitTestResult RunTestSuite(XUnitAssemblyTestSuite rootSuite, XUnitTestSuite testSuite, TestContext context) { var testCases = new List <XUnitTestCase> (); CollectTestCases(testCases, testSuite); return(Run(testCases, rootSuite, testSuite, context)); }
void CollectTestCases (List<XUnitTestCase> testCases, XUnitTestSuite testSuite) { foreach (var test in testSuite.Tests) { if (test is XUnitTestCase) testCases.Add ((XUnitTestCase)test); else CollectTestCases (testCases, (XUnitTestSuite)test); } }
void CollectTestCases(List <XUnitTestCase> testCases, XUnitTestSuite testSuite) { foreach (var test in testSuite.Tests) { if (test is XUnitTestCase) { testCases.Add((XUnitTestCase)test); } else { CollectTestCases(testCases, (XUnitTestSuite)test); } } }
protected override void OnCreateTests () { if (TestInfo.Tests == null) return; foreach (var info in TestInfo.Tests) { UnitTest test; if (info.Tests != null) test = new XUnitTestSuite (rootSuite, executor, info); else test = new XUnitTestCase (rootSuite, executor, info); Tests.Add (test); } }
void FillTests(XUnitTestInfo testInfo) { if (testInfo == null || testInfo.Tests == null) { return; } foreach (var child in testInfo.Tests) { UnitTest test; if (child.Tests == null) { test = new XUnitTestCase(this, executor, child); } else { test = new XUnitTestSuite(this, executor, child); } Tests.Add(test); } }
protected override void OnCreateTests() { if (TestInfo.Tests == null) { return; } foreach (var info in TestInfo.Tests) { UnitTest test; if (info.Tests != null) { test = new XUnitTestSuite(rootSuite, executor, info); } else { test = new XUnitTestCase(rootSuite, executor, info); } Tests.Add(test); } }
void FillTests (XUnitTestInfo testInfo) { if (testInfo == null || testInfo.Tests == null) return; foreach (var child in testInfo.Tests) { UnitTest test; if (child.Tests == null) test = new XUnitTestCase (this, executor, child); else test = new XUnitTestSuite (this, executor, child); Tests.Add (test); } }