/// <summary> /// Extracts single test case, made public for testing. /// </summary> public static NUnitDiscoveryTestCase ExtractTestCase(INUnitDiscoveryCanHaveTestCases tf, XElement child) { var className = child.Attribute(NUnitXmlAttributeNames.Classname)?.Value; var methodName = child.Attribute(NUnitXmlAttributeNames.Methodname)?.Value; var seedAtr = child.Attribute(NUnitXmlAttributeNames.Seed)?.Value; var seed = seedAtr != null?long.Parse(seedAtr, CultureInfo.InvariantCulture) : 0; var btf = ExtractSuiteBasePropertiesClass(child); var tc = new NUnitDiscoveryTestCase(btf, tf, className, methodName, seed); return(tc); }
public override void AddToAllTestCases(NUnitDiscoveryTestCase tc) { allTestCases.Add(tc); }
public void AddTestCase(NUnitDiscoveryTestCase tc) { testCases.Add(tc); Parent.AddToAllTestCases(tc); }
public virtual void AddToAllTestCases(NUnitDiscoveryTestCase tc) { Parent.AddToAllTestCases(tc); }