/// <summary> /// Looks up a test unit by fully qualified name /// </summary> /// <param name="root">The root test unit from which to start searching</param> /// <param name="fullyQualifiedName">The fully qualified name of the test unit to look for</param> /// <returns>The test unit with the requested fully qualified name or null if it cannot be found</returns> private TestUnit Lookup(TestUnit root, string fullyQualifiedName) { TestUnitLookup lookup = new TestUnitLookup(fullyQualifiedName); root.Apply(lookup); return(lookup.Unit); }
/// <summary> /// Looks up a test unit by fully qualified name /// </summary> /// <param name="root">The root test unit from which to start searching</param> /// <param name="fullyQualifiedName">The fully qualified name of the test unit to look for</param> /// <returns>The test unit with the requested fully qualified name or null if it cannot be found</returns> private TestUnit Lookup(TestUnit root, string fullyQualifiedName) { TestUnitLookup lookup = new TestUnitLookup(fullyQualifiedName); root.Apply(lookup); return lookup.Unit; }