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.Interfaces.ITestFilter Interface Reference

Interface to be implemented by filters applied to tests. The filter applies when running the test, after it has been loaded, since this is the only time an ITest exists. More...

+ Inheritance diagram for NUnit.Framework.Interfaces.ITestFilter:
+ Collaboration diagram for NUnit.Framework.Interfaces.ITestFilter:

Public Member Functions

bool Pass (ITest test)
 Determine if a particular test passes the filter criteria. Pass may examine the parents and/or descendants of a test, depending on the semantics of the particular filter More...
 
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...
 
- Public Member Functions inherited from NUnit.Framework.Interfaces.IXmlNodeBuilder
TNode ToXml (bool recursive)
 Returns a TNode representing the current object. More...
 
TNode AddToXml (TNode parentNode, bool recursive)
 Returns a TNode representing the current object after adding it as a child of the supplied parent node. More...
 

Detailed Description

Interface to be implemented by filters applied to tests. The filter applies when running the test, after it has been loaded, since this is the only time an ITest exists.

Member Function Documentation

bool NUnit.Framework.Interfaces.ITestFilter.Pass ( ITest  test)

Determine if a particular test passes the filter criteria. Pass may examine the parents and/or descendants of a test, depending on the semantics of the particular filter

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

Implemented in NUnit.Framework.Internal.TestFilter.EmptyFilter, NUnit.Framework.Internal.TestFilter, NUnit.Framework.Internal.Filters.NotFilter, NUnit.Framework.Internal.Filters.AndFilter, and NUnit.Framework.Internal.Filters.OrFilter.

Referenced by NUnit.Framework.Internal.Execution.CompositeWorkItem.CreateChildWorkItems(), NUnit.Framework.Internal.Filters.OrFilter.Pass(), NUnit.Framework.Internal.Filters.AndFilter.Pass(), and NUnit.Framework.Internal.Execution.CompositeWorkItem.SkipChildren().

bool NUnit.Framework.Interfaces.ITestFilter.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.

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

Implemented in NUnit.Framework.Internal.TestFilter.EmptyFilter, NUnit.Framework.Internal.Filters.NotFilter, and NUnit.Framework.Internal.TestFilter.

Referenced by NUnit.Framework.Internal.Execution.CompositeWorkItem.PerformWork(), and NUnit.Framework.Internal.Execution.SimpleWorkItem.SimpleWorkItem().


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