public Testsuite(XElement xTestsuite)
        {
            attributes = new Attributes(xTestsuite);
            XElement failure = xTestsuite.Element("failure");

            if (failure != null)
            {
                failure_message = (string)failure.Element("message");
            }
            XElement properties = xTestsuite.Element("properties");

            if (properties != null)
            {
                XElement property = properties.Element("property");
                property_name  = (string)property.Attribute("name");
                property_value = (string)property.Attribute("value");
            }
            XElement testcase = xTestsuite.Element("test-case");

            if (testcase != null)
            {
                TestCase = new TestCase(testcase);
            }
            xTestsuite = xTestsuite.Element("test-suite");
            if (xTestsuite != null)
            {
                testsuite = new Testsuite(xTestsuite);
            }
        }
        public void ParseXml(string filename)
        {
            XDocument doc     = XDocument.Load(filename);
            XElement  Testrun = doc.Root;

            Commandline = (string)Testrun.Element("command-line");
            XElement testsuit = Testrun.Element("test-suite");

            if (testsuit != null)
            {
                Testsuite = new Testsuite(testsuit);
            }
        }