protected void InspectTests(ITest test, List <string> methodNames, HashSet <string> categoryNames) { foreach (ITest t in test.Tests) { if (t is NUnitTestMethod) { methodNames.Add(t.TestName.FullName); } if (t.Categories != null) { foreach (string category in t.Categories) { if (NUnitFramework.IsValidCategoryName(category) && !categoryNames.Contains(category)) { categoryNames.Add(category); } } } if (t.Tests != null) { InspectTests(t, methodNames, categoryNames); } } }
public void AddCategories(ITest test) { if (test.Categories != null) { foreach (string name in test.Categories) { if (NUnitFramework.IsValidCategoryName(name)) { Add(name); } } } }