public void BuildTestInfo(DnxProjectTestSuite projectTestSuite)
        {
            tests.Sort(OrderByName);

            parentNamespace = new DnxNamespaceTestGroup(projectTestSuite, null, String.Empty);
            parentNamespace.AddTests(tests);
        }
        public DnxNamespaceTestGroup(IDnxTestRunner testRunner, UnitTestGroup parent, string name)
            : base(name)
        {
            currentNamespace = this;
            this.testRunner  = testRunner;

            if (parent == null || String.IsNullOrEmpty(parent.FixtureTypeNamespace))
            {
                FixtureTypeNamespace = name;
            }
            else
            {
                FixtureTypeNamespace = parent.FixtureTypeNamespace + "." + name;
            }
        }
        void AddTest(DnxUnitTest dnxTest)
        {
            string childNamespace = dnxTest.GetChildNamespace(FixtureTypeNamespace);

            if (String.IsNullOrEmpty(childNamespace))
            {
                if (currentClass == null || currentClass.FixtureTypeName != dnxTest.FixtureTypeName)
                {
                    currentClass = new DnxTestClass(testRunner, dnxTest.FixtureTypeName);
                    Tests.Add(currentClass);
                }
                currentClass.Tests.Add(dnxTest);
            }
            else if (currentNamespace.Name == childNamespace)
            {
                currentNamespace.AddTest(dnxTest);
            }
            else
            {
                currentNamespace = new DnxNamespaceTestGroup(testRunner, currentNamespace, childNamespace);
                currentNamespace.AddTest(dnxTest);
                Tests.Add(currentNamespace);
            }
        }