Interface ITestFilter
- Namespace
- NUnit.Framework.Interfaces
- Assembly
- nunit.framework.dll
Interface to be implemented by filters applied to tests. The filter applies when running the test, after it has been loaded, since this is the only time an ITest exists.
public interface ITestFilter
Methods
IsExplicitMatch(ITest)
Determine if a test matches the filter expicitly. That is, it must be a direct match of the test itself or one of it's children.
bool IsExplicitMatch(ITest test)
Parameters
test
ITestThe test to which the filter is applied
Returns
- bool
True if the test matches the filter explicityly, otherwise false
Pass(ITest)
Determine if a particular test passes the filter criteria. Pass may examine the parents and/or descendants of a test, depending on the semantics of the particular filter
bool Pass(ITest test)
Parameters
test
ITestThe test to which the filter is applied
Returns
- bool
True if the test passes the filter, otherwise false