IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
NUnit.Framework.Internal.Filters.NotFilter Class Reference

NotFilter negates the operation of another filter More...

+ Inheritance diagram for NUnit.Framework.Internal.Filters.NotFilter:
+ Collaboration diagram for NUnit.Framework.Internal.Filters.NotFilter:

Public Member Functions

 NotFilter (TestFilter baseFilter)
 Construct a not filter on another filter More...
 
override bool Pass (ITest test)
 Determine if a particular test passes the filter criteria. The default implementation checks the test itself, its parents and any descendants. More...
 
override bool Match (ITest test)
 Check whether the filter matches a test More...
 
override bool IsExplicitMatch (ITest test)
 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. More...
 
override TNode AddToXml (TNode parentNode, bool recursive)
 Adds an XML node More...
 
- Public Member Functions inherited from NUnit.Framework.Internal.TestFilter
bool MatchParent (ITest test)
 Determine whether any ancestor of the test matches the filter criteria More...
 
TNode ToXml (bool recursive)
 Adds an XML node More...
 

Properties

TestFilter BaseFilter [get, private set]
 Gets the base filter More...
 
- Properties inherited from NUnit.Framework.Internal.TestFilter
bool IsEmpty [get]
 Indicates whether this is the EmptyFilter More...
 
bool TopLevel [get, set]
 Indicates whether this is a top-level filter, not contained in any other filter. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from NUnit.Framework.Internal.TestFilter
static TestFilter FromXml (string xmlText)
 Create a TestFilter instance from an xml representation. More...
 
static TestFilter FromXml (TNode node)
 Create a TestFilter from it's TNode representation More...
 
- Static Public Attributes inherited from NUnit.Framework.Internal.TestFilter
static readonly TestFilter Empty = new EmptyFilter()
 Unique Empty filter. More...
 
- Protected Member Functions inherited from NUnit.Framework.Internal.TestFilter
virtual bool MatchDescendant (ITest test)
 Determine whether any descendant of the test matches the filter criteria. More...
 

Detailed Description

NotFilter negates the operation of another filter

Constructor & Destructor Documentation

NUnit.Framework.Internal.Filters.NotFilter.NotFilter ( TestFilter  baseFilter)
inline

Construct a not filter on another filter

Parameters
baseFilterThe filter to be negated

Member Function Documentation

override bool NUnit.Framework.Internal.Filters.NotFilter.Pass ( ITest  test)
inlinevirtual

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.

Parameters
testThe test to which the filter is applied
Returns
True if the test passes the filter, otherwise false

Reimplemented from NUnit.Framework.Internal.TestFilter.

override bool NUnit.Framework.Internal.Filters.NotFilter.Match ( ITest  test)
inlinevirtual

Check whether the filter matches a test

Parameters
testThe test to be matched
Returns
True if it matches, otherwise false

Implements NUnit.Framework.Internal.TestFilter.

override bool NUnit.Framework.Internal.Filters.NotFilter.IsExplicitMatch ( ITest  test)
inlinevirtual

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.

Parameters
testThe test to which the filter is applied
Returns
True if the test matches the filter explicityly, otherwise false

Reimplemented from NUnit.Framework.Internal.TestFilter.

override TNode NUnit.Framework.Internal.Filters.NotFilter.AddToXml ( TNode  parentNode,
bool  recursive 
)
inlinevirtual

Adds an XML node

Parameters
parentNodeParent node
recursiveTrue if recursive
Returns
The added XML node

Implements NUnit.Framework.Internal.TestFilter.

References NUnit.Framework.Interfaces.TNode.AddElement().

Property Documentation

TestFilter NUnit.Framework.Internal.Filters.NotFilter.BaseFilter
getprivate set

Gets the base filter


The documentation for this class was generated from the following file: