private void WriteTestFixtureTestSuiteElement(IComposedUnitTestOutcome results)
        {
            var testSuiteRealName = results.TestResults.FirstOrDefault().TestClass.Name;

            StartTestSuiteElement(testSuiteRealName, "TestFixture", results.TotalNumberOfTestsExecuted() > 0, results.Succeeded(),
                                  results.ExecutionTimeInMiliseconds(), 0);

            xmlWriter.WriteStartElement("results");

            if (results.TestResults.Any())
                WriteChildResults(results.TestResults);

            xmlWriter.WriteEndElement(); // results

            xmlWriter.WriteEndElement(); // test suite element
        }
        private void WriteAssemblyTestSuiteElement(IComposedUnitTestOutcome results)
        {
            var assemblyName = results.TestResults.FirstOrDefault().TestClass.Assembly.Name;

            StartTestSuiteElement(assemblyName, "Assembly", results.TotalNumberOfTestsExecuted() > 0, results.Succeeded(),
                                  results.ExecutionTimeInMiliseconds(), 0);

            xmlWriter.WriteStartElement("results");

            var groupedByNamespace = results.TestResults.GroupBy(r => r.TestClass.Namespace);

            foreach (var namespaceData in groupedByNamespace)
            {
                WriteNamespaceTestSuiteElement(new ComposedUnitTestOutcome() { TestResults = namespaceData.ToList() });
            }

            xmlWriter.WriteEndElement(); // results

            xmlWriter.WriteEndElement(); // test suite element
        }