IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
TestProgressReporter translates ITestListener events into the async callbacks that are used to inform the client software about the progress of a test run. More...
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") |
TestProgressReporter translates ITestListener events into the async callbacks that are used to inform the client software about the progress of a test run.
|
inline |
Initializes a new instance of the TestProgressReporter class.
handler | The callback handler to be used for reporting progress. |
|
inline |
Called when a test has just started
test | The 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.
|
inline |
Called when a test has finished. Sends a result summary to the callback. to
result | The 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().
|
inlinestaticprivate |
Returns the parent test item for the targer test item if it exists
test |
References NUnit.Framework.Interfaces.ITest.IsSuite, and NUnit.Framework.Interfaces.ITest.Parent.
|
inlinestaticprivate |
Makes a string safe for use as an attribute, replacing characters characters that can't be used with their corresponding xml representations.
original | The string to be used |
|
staticprivate |
|
private |