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

Inheritance: TestFilter
Afficher le fichier Open project: nunit/nunit Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

IsExplicitMatch() public méthode

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
Résultat bool

Match() public méthode

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

NotFilter() public méthode

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

Pass() public méthode

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
Résultat bool