C# Class NUnit.Framework.Internal.Filters.NotFilter

Inheritance: TestFilter
Mostra file Open project: nunit/nunit Class Usage Examples

Public Methods

Method Description
AddToXml ( TNode parentNode, bool recursive ) : TNode

Adds an XML node

IsExplicitMatch ( ITest test ) : bool

Determine if a test matches the filter explicitly. That is, it must be a direct match of the test itself or one of it's children.

Match ( ITest test ) : bool

Check whether the filter matches a test

NotFilter ( TestFilter baseFilter ) : System

Construct a not filter on another filter

Pass ( ITest test ) : bool

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.

Method Details

AddToXml() public method

Adds an XML node
public AddToXml ( TNode parentNode, bool recursive ) : TNode
parentNode TNode Parent node
recursive bool True if recursive
return TNode

IsExplicitMatch() public method

Determine if a test matches the filter explicitly. That is, it must be a direct match of the test itself or one of it's children.
public IsExplicitMatch ( ITest test ) : bool
test ITest The test to which the filter is applied
return bool

Match() public method

Check whether the filter matches a test
public Match ( ITest test ) : bool
test ITest The test to be matched
return bool

NotFilter() public method

Construct a not filter on another filter
public NotFilter ( TestFilter baseFilter ) : System
baseFilter TestFilter The filter to be negated
return System

Pass() public method

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 Pass ( ITest test ) : bool
test ITest The test to which the filter is applied
return bool