Interface ITestFilter
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.
Namespace: NUnit.Framework.Interfaces
Assembly: nunit.framework.dll
Syntax
public interface ITestFilter : IXmlNodeBuilder
Methods
View SourceIsExplicitMatch(ITest)
Determine if a test matches the filter explicitly. That is, it must be a direct match of the test itself or one of its children.
Declaration
bool IsExplicitMatch(ITest test)
Parameters
Type | Name | Description |
---|---|---|
ITest | test | The test to which the filter is applied |
Returns
Type | Description |
---|---|
bool | True if the test matches the filter explicitly, 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
Declaration
bool Pass(ITest test)
Parameters
Type | Name | Description |
---|---|---|
ITest | test | The test to which the filter is applied |
Returns
Type | Description |
---|---|
bool | True if the test passes the filter, otherwise false |