private NUnitDiscoveryTestRun ExtractTestRun(XDocument node)
        {
            var sb = ExtractSuiteBasePropertiesClass(node.Root);
            var tr = new NUnitDiscoveryTestRun(sb);

            return(tr);
        }
        private NUnitDiscoveryTestAssembly ExtractTestAssembly(XElement node, NUnitDiscoveryTestRun parent)
        {
            string d_type = node.Attribute(NUnitXmlAttributeNames.Type).Value;

            if (d_type != "Assembly")
            {
                throw new DiscoveryException("Node is not of type assembly: " + node);
            }
            var a_base   = ExtractSuiteBasePropertiesClass(node);
            var assembly = new NUnitDiscoveryTestAssembly(a_base, parent);

            parent.AddTestAssembly(assembly);
            return(assembly);
        }
Example #3
0
 public NUnitDiscoveryTestAssembly(BaseProperties theBase, NUnitDiscoveryTestRun parent) : base(theBase, parent)
 {
 }