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

PropertyFilter is able to select or exclude tests based on their properties. More...

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

Public Member Functions

 PropertyFilter (string propertyName, string expectedValue)
 Construct a PropertyFilter using a property name and expected value More...
 
override bool Match (ITest test)
 Check whether the filter matches a test More...
 
override TNode AddToXml (TNode parentNode, bool recursive)
 Adds an XML node More...
 
- Public Member Functions inherited from NUnit.Framework.Internal.Filters.ValueMatchFilter
 ValueMatchFilter (string expectedValue)
 Construct a ValueMatchFilter for a single value. 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...
 
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

override string ElementName [get]
 Gets the element name More...
 
- Properties inherited from NUnit.Framework.Internal.Filters.ValueMatchFilter
string ExpectedValue [get, private set]
 Returns the value matched by the filter - used for testing More...
 
bool IsRegex [get, set]
 Indicates whether the value is a regular expression 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...
 

Private Attributes

string _propertyName
 

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.Filters.ValueMatchFilter
bool Match (string input)
 Match the input provided by the derived class 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

PropertyFilter is able to select or exclude tests based on their properties.

Constructor & Destructor Documentation

NUnit.Framework.Internal.Filters.PropertyFilter.PropertyFilter ( string  propertyName,
string  expectedValue 
)
inline

Construct a PropertyFilter using a property name and expected value

Parameters
propertyNameA property name
expectedValueThe expected value of the property

Member Function Documentation

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

Check whether the filter matches a test

Parameters
testThe test to be matched
Returns

Implements NUnit.Framework.Internal.TestFilter.

References NUnit.Framework.Interfaces.ITest.Properties.

override TNode NUnit.Framework.Internal.Filters.PropertyFilter.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.AddAttribute().

Member Data Documentation

string NUnit.Framework.Internal.Filters.PropertyFilter._propertyName
private

Property Documentation

override string NUnit.Framework.Internal.Filters.PropertyFilter.ElementName
getprotected

Gets the element name

Element name


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