Class NotFilter
NotFilter negates the operation of another filter
public class NotFilter : TestFilter, ITestFilter
- Inheritance
-
NotFilter
- Implements
- Inherited Members
Constructors
NotFilter(TestFilter)
Construct a not filter on another filter
public NotFilter(TestFilter baseFilter)
Parameters
baseFilter
TestFilterThe filter to be negated
Properties
BaseFilter
Gets the base filter
public TestFilter BaseFilter { get; }
Property Value
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.
public override 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
Match(ITest)
Check whether the filter matches a test
public override bool Match(ITest test)
Parameters
test
ITestThe test to be matched
Returns
- bool
True if it matches, otherwise false
Pass(ITest)
Determine if a particular test passes the filter criteria. The default implementation checks the test itself, its parents and any descendants.
Derived classes may override this method or any of the Match methods to change the behavior of the filter.
public override 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