Here are the examples of the csharp api NUnit.Framework.Interfaces.ITest.GetAllCategoriesFromTest() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
19
Source : TestExtensions.cs
with Creative Commons Zero v1.0 Universal
from Colanderp
with Creative Commons Zero v1.0 Universal
from Colanderp
public static bool HasCategory(this ITest test, string[] categoryFilter)
{
var categories = test.GetAllCategoriesFromTest().Distinct();
return categoryFilter.Any(c => categories.Any(r => r == c));
}
19
Source : TestExtensions.cs
with GNU Lesser General Public License v3.0
from disruptorbeam
with GNU Lesser General Public License v3.0
from disruptorbeam
public static bool HasCategory(this ITest test, string[] categoryFilter)
{
var categories = test.GetAllCategoriesFromTest().Distinct();
return categoryFilter.Any(c => categories.Any(r => r == c));
}