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.TestContext.ResultAdapter Class Reference

ResultAdapter adapts a TestResult for consumption by the user test code. More...

+ Collaboration diagram for NUnit.Framework.TestContext.ResultAdapter:

Public Member Functions

 ResultAdapter (TestResult result)
 Construct a ResultAdapter for a TestResult More...
 

Properties

ResultState Outcome [get]
 Gets a ResultState representing the outcome of the test. More...
 
string Message [get]
 Gets the message associated with a test failure or with not running the test More...
 
virtual string StackTrace [get]
 Gets any stacktrace associated with an error or failure. More...
 
int FailCount [get]
 Gets the number of test cases that failed when running the test and all its children. More...
 
int PassCount [get]
 Gets the number of test cases that passed when running the test and all its children. More...
 
int SkipCount [get]
 Gets the number of test cases that were skipped when running the test and all its children. More...
 
int InconclusiveCount [get]
 Gets the number of test cases that were inconclusive when running the test and all its children. More...
 

Private Attributes

readonly TestResult _result
 

Detailed Description

ResultAdapter adapts a TestResult for consumption by the user test code.

Constructor & Destructor Documentation

NUnit.Framework.TestContext.ResultAdapter.ResultAdapter ( TestResult  result)
inline

Construct a ResultAdapter for a TestResult

Parameters
resultThe TestResult to be adapted

Member Data Documentation

readonly TestResult NUnit.Framework.TestContext.ResultAdapter._result
private

Property Documentation

string NUnit.Framework.TestContext.ResultAdapter.Message
get

Gets the message associated with a test failure or with not running the test

Referenced by NUnit.TestData.TestContextData.TestTestContextInOneTimeTearDown.OneTimeTearDown(), and NUnit.TestData.TestContextData.TestTestContextInTearDown.TearDown().

virtual string NUnit.Framework.TestContext.ResultAdapter.StackTrace
get

Gets any stacktrace associated with an error or failure.

Referenced by NUnit.TestData.TestContextData.TestTestContextInTearDown.TearDown().

int NUnit.Framework.TestContext.ResultAdapter.PassCount
get
int NUnit.Framework.TestContext.ResultAdapter.SkipCount
get

Gets the number of test cases that were skipped when running the test and all its children.

Referenced by NUnit.TestData.TestContextData.TestTestContextInOneTimeTearDown.OneTimeTearDown(), and NUnit.Framework.Tests.TestContextOneTimeTearDownTests.OneTimeTearDown().

int NUnit.Framework.TestContext.ResultAdapter.InconclusiveCount
get

Gets the number of test cases that were inconclusive when running the test and all its children.

Referenced by NUnit.TestData.TestContextData.TestTestContextInOneTimeTearDown.OneTimeTearDown().


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