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.CompositeFilter Class Reference

A base class for multi-part filters More...

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

Public Member Functions

 CompositeFilter ()
 Constructs an empty CompositeFilter More...
 
 CompositeFilter (params ITestFilter[] filters)
 Constructs a CompositeFilter from an array of filters More...
 
void Add (ITestFilter filter)
 Adds a filter to the list of filters More...
 
override TNode AddToXml (TNode parentNode, bool recursive)
 Adds an XML node More...
 
- Public Member Functions inherited from NUnit.Framework.Internal.TestFilter
virtual 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...
 
virtual 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...
 
abstract bool Match (ITest test)
 Determine whether the test itself matches the filter criteria, without examining either parents or descendants. This is overridden by each different type of filter to perform the necessary tests. More...
 
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

IList< ITestFilterFilters [get, private set]
 Return a list of the composing filters. More...
 
abstract string ElementName [get]
 Gets the element name 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

A base class for multi-part filters

Constructor & Destructor Documentation

NUnit.Framework.Internal.Filters.CompositeFilter.CompositeFilter ( )
inline

Constructs an empty CompositeFilter

NUnit.Framework.Internal.Filters.CompositeFilter.CompositeFilter ( params ITestFilter[]  filters)
inline

Constructs a CompositeFilter from an array of filters

Parameters
filters

Member Function Documentation

void NUnit.Framework.Internal.Filters.CompositeFilter.Add ( ITestFilter  filter)
inline

Adds a filter to the list of filters

Parameters
filterThe filter to be added
override TNode NUnit.Framework.Internal.Filters.CompositeFilter.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(), and NUnit.Framework.Interfaces.IXmlNodeBuilder.AddToXml().

Property Documentation

IList<ITestFilter> NUnit.Framework.Internal.Filters.CompositeFilter.Filters
getprivate set

Return a list of the composing filters.

abstract string NUnit.Framework.Internal.Filters.CompositeFilter.ElementName
getprotected

Gets the element name

Element name


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