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);
            }
        }
예제 #2
0
        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);
            }
        }