bool MatchesIncludeCategory(ITest test)
{
if (IncludeCategories.Count == 0)
return true;
var categoryList = test.Properties["Category"];
if (categoryList == null || categoryList.Count == 0)
return false;
return categoryList.OfType<string>().Any(IncludeCategories.Contains);
}