public void AddTests(IEnumerable <TestCase> tests)
 {
     foreach (TestCase test in tests)
     {
         var dotNetCoreTest = new DotNetCoreUnitTest(testRunner, test);
         AddTest(dotNetCoreTest);
     }
 }
        void AddTest(DotNetCoreUnitTest dotNetCoreTest)
        {
            string childNamespace = dotNetCoreTest.GetChildNamespace(FixtureTypeNamespace);

            if (string.IsNullOrEmpty(childNamespace))
            {
                if (currentClass == null || currentClass.FixtureTypeName != dotNetCoreTest.FixtureTypeName)
                {
                    currentClass = new DotNetCoreTestClass(testRunner, dotNetCoreTest.FixtureTypeName);
                    Tests.Add(currentClass);
                }
                currentClass.Tests.Add(dotNetCoreTest);
            }
            else if (currentNamespace.Name == childNamespace)
            {
                currentNamespace.AddTest(dotNetCoreTest);
            }
            else
            {
                currentNamespace = new DotNetCoreNamespaceTestGroup(testRunner, currentNamespace, childNamespace);
                currentNamespace.AddTest(dotNetCoreTest);
                Tests.Add(currentNamespace);
            }
        }