Class AndFilter
Combines multiple filters so that a test must pass all of them in order to pass this filter.
public class AndFilter : TestFilter, ITestFilter
- Inheritance
-
AndFilter
- Implements
- Inherited Members
Constructors
AndFilter()
Constructs an empty AndFilter
public AndFilter()
AndFilter(params ITestFilter[])
Constructs an AndFilter from an array of filters
public AndFilter(params ITestFilter[] filters)
Parameters
filters
ITestFilter[]
Properties
Filters
Return an array of the composing filters
public ITestFilter[] Filters { get; }
Property Value
Methods
Add(ITestFilter)
Adds a filter to the list of filters
public void Add(ITestFilter filter)
Parameters
filter
ITestFilterThe filter to be added
Match(ITest)
Checks whether the AndFilter is matched by a test
public override bool Match(ITest test)
Parameters
test
ITestThe test to be matched
Returns
- bool
True if all the component filters match, otherwise false
Pass(ITest)
Checks whether the AndFilter is matched by a test
public override bool Pass(ITest test)
Parameters
test
ITestThe test to be matched
Returns
- bool
True if all the component filters pass, otherwise false