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

TestProgressReporter translates ITestListener events into the async callbacks that are used to inform the client software about the progress of a test run. More...

+ Inheritance diagram for NUnit.Framework.Internal.TestProgressReporter:
+ Collaboration diagram for NUnit.Framework.Internal.TestProgressReporter:

Public Member Functions

 TestProgressReporter (ICallbackEventHandler handler)
 Initializes a new instance of the TestProgressReporter class. More...
 
void TestStarted (ITest test)
 Called when a test has just started More...
 
void TestFinished (ITestResult result)
 Called when a test has finished. Sends a result summary to the callback. to More...
 

Static Private Member Functions

static ITest GetParent (ITest test)
 Returns the parent test item for the targer test item if it exists More...
 
static string FormatAttributeValue (string original)
 Makes a string safe for use as an attribute, replacing characters characters that can't be used with their corresponding xml representations. More...
 

Private Attributes

ICallbackEventHandler handler
 

Static Private Attributes

static Logger log = InternalTrace.GetLogger("TestProgressReporter")
 

Detailed Description

TestProgressReporter translates ITestListener events into the async callbacks that are used to inform the client software about the progress of a test run.

Constructor & Destructor Documentation

NUnit.Framework.Internal.TestProgressReporter.TestProgressReporter ( ICallbackEventHandler  handler)
inline

Initializes a new instance of the TestProgressReporter class.

Parameters
handlerThe callback handler to be used for reporting progress.

Member Function Documentation

void NUnit.Framework.Internal.TestProgressReporter.TestStarted ( ITest  test)
inline

Called when a test has just started

Parameters
testThe test that is starting

Implements NUnit.Framework.Interfaces.ITestListener.

References NUnit.Framework.Interfaces.ITest.FullName, NUnit.Framework.Interfaces.ITest.Id, NUnit.Framework.Interfaces.ITest.Name, and NUnit.Env.NewLine.

void NUnit.Framework.Internal.TestProgressReporter.TestFinished ( ITestResult  result)
inline

Called when a test has finished. Sends a result summary to the callback. to

Parameters
resultThe result of the test

Implements NUnit.Framework.Interfaces.ITestListener.

References NUnit.Framework.Interfaces.ITestResult.FullName, NUnit.Env.NewLine, NUnit.Framework.Interfaces.ITestResult.Test, and NUnit.Framework.Interfaces.IXmlNodeBuilder.ToXml().

static ITest NUnit.Framework.Internal.TestProgressReporter.GetParent ( ITest  test)
inlinestaticprivate

Returns the parent test item for the targer test item if it exists

Parameters
test
Returns
parent test item

References NUnit.Framework.Interfaces.ITest.IsSuite, and NUnit.Framework.Interfaces.ITest.Parent.

static string NUnit.Framework.Internal.TestProgressReporter.FormatAttributeValue ( string  original)
inlinestaticprivate

Makes a string safe for use as an attribute, replacing characters characters that can't be used with their corresponding xml representations.

Parameters
originalThe string to be used
Returns
A new string with the _values replaced

Member Data Documentation

Logger NUnit.Framework.Internal.TestProgressReporter.log = InternalTrace.GetLogger("TestProgressReporter")
staticprivate
ICallbackEventHandler NUnit.Framework.Internal.TestProgressReporter.handler
private

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