/// <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);
        }
Beispiel #2
0
 public override void AddToAllTestCases(NUnitDiscoveryTestCase tc)
 {
     allTestCases.Add(tc);
 }
Beispiel #3
0
 public void AddTestCase(NUnitDiscoveryTestCase tc)
 {
     testCases.Add(tc);
     Parent.AddToAllTestCases(tc);
 }
Beispiel #4
0
 public virtual void AddToAllTestCases(NUnitDiscoveryTestCase tc)
 {
     Parent.AddToAllTestCases(tc);
 }