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);
        }
Пример #2
0
 public void AddTestAssembly(NUnitDiscoveryTestAssembly testAssembly)
 {
     TestAssembly = testAssembly;
 }