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

Represents the result of running a test suite More...

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

Public Member Functions

 TestSuiteResult (TestSuite suite)
 Construct a TestSuiteResult base on a TestSuite More...
 
override void AddResult (ITestResult result)
 Add a child result More...
 
- Public Member Functions inherited from NUnit.Framework.Internal.TestResult
 TestResult (ITest test)
 Construct a test result given a Test More...
 
TNode ToXml (bool recursive)
 Returns the Xml representation of the result. More...
 
virtual TNode AddToXml (TNode parentNode, bool recursive)
 Adds the XML representation of the result as a child of the supplied parent node.. More...
 
void SetResult (ResultState resultState)
 Set the result of the test More...
 
void SetResult (ResultState resultState, string message)
 Set the result of the test More...
 
void SetResult (ResultState resultState, string message, string stackTrace)
 Set the result of the test More...
 
void RecordException (Exception ex)
 Set the test result based on the type of exception thrown More...
 
void RecordException (Exception ex, FailureSite site)
 Set the test result based on the type of exception thrown More...
 
void RecordTearDownException (Exception ex)
 RecordTearDownException appends the message and stacktrace from an exception arising during teardown of the test to any previously recorded information, so that any earlier failure information is not lost. Note that calling Assert.Ignore, Assert.Inconclusive, etc. during teardown is treated as an error. If the current result represents a suite, it may show a teardown error even though all contained tests passed. More...
 

Properties

override int FailCount [get]
 Gets the number of test cases that failed when running the test and all its children. More...
 
override int PassCount [get]
 Gets the number of test cases that passed when running the test and all its children. More...
 
override int SkipCount [get]
 Gets the number of test cases that were skipped when running the test and all its children. More...
 
override int InconclusiveCount [get]
 Gets the number of test cases that were inconclusive when running the test and all its children. More...
 
- Properties inherited from NUnit.Framework.Internal.TestResult
ITest Test [get, private set]
 Gets the test with which this result is associated. More...
 
ResultState ResultState [get, private set]
 Gets the ResultState of the test result, which indicates the success or failure of the test. More...
 
virtual string Name [get]
 Gets the name of the test result More...
 
virtual string FullName [get]
 Gets the full name of the test result More...
 
double Duration [get, set]
 Gets or sets the elapsed time for running the test in seconds More...
 
DateTime StartTime [get, set]
 Gets or sets the time the test started running. More...
 
DateTime EndTime [get, set]
 Gets or sets the time the test finished running. More...
 
string Message [get, private set]
 Gets the message associated with a test failure or with not running the test More...
 
virtual string StackTrace [get, private set]
 Gets any stacktrace associated with an error or failure. More...
 
int AssertCount [get, set]
 Gets or sets the count of asserts executed when running the test. More...
 
abstract int FailCount [get]
 Gets the number of test cases that failed when running the test and all its children. More...
 
abstract int PassCount [get]
 Gets the number of test cases that passed when running the test and all its children. More...
 
abstract int SkipCount [get]
 Gets the number of test cases that were skipped when running the test and all its children. More...
 
abstract int InconclusiveCount [get]
 Gets the number of test cases that were inconclusive when running the test and all its children. More...
 
bool HasChildren [get]
 Indicates whether this result has any child results. Test HasChildren before accessing Children to avoid the creation of an empty collection. More...
 
System.Collections.Generic.IList
< ITestResult
Children [get]
 Gets the collection of child results. More...
 
StringWriter OutWriter [get]
 Gets a TextWriter, which will write output to be included in the result. More...
 
string Output [get]
 Gets any text output written to this result. More...
 
- Properties inherited from NUnit.Framework.Interfaces.ITestResult
ResultState ResultState [get]
 Gets the ResultState of the test result, which indicates the success or failure of the test. More...
 
string Name [get]
 Gets the name of the test result More...
 
string FullName [get]
 Gets the full name of the test result More...
 
double Duration [get]
 Gets the elapsed time for running the test in seconds More...
 
DateTime StartTime [get]
 Gets or sets the time the test started running. More...
 
DateTime EndTime [get]
 Gets or sets the time the test finished running. More...
 
string Message [get]
 Gets the message associated with a test failure or with not running the test More...
 
string StackTrace [get]
 Gets any stacktrace associated with an error or failure. Not available in the Compact Framework 1.0. More...
 
int AssertCount [get]
 Gets the number of asserts executed when running the test and all its children. 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...
 
bool HasChildren [get]
 Indicates whether this result has any child results. Accessing HasChildren should not force creation of the Children collection in classes implementing this interface. More...
 
System.Collections.Generic.IList
< ITestResult
Children [get]
 Gets the the collection of child results. More...
 
ITest Test [get]
 Gets the Test to which this result applies. More...
 
string Output [get]
 Gets any text output written to this result. More...
 

Private Attributes

int passCount = 0
 
int failCount = 0
 
int skipCount = 0
 
int inconclusiveCount = 0
 

Detailed Description

Represents the result of running a test suite

Constructor & Destructor Documentation

NUnit.Framework.Internal.TestSuiteResult.TestSuiteResult ( TestSuite  suite)
inline

Construct a TestSuiteResult base on a TestSuite

Parameters
suiteThe TestSuite to which the result applies

Member Function Documentation

override void NUnit.Framework.Internal.TestSuiteResult.AddResult ( ITestResult  result)
inlinevirtual

Member Data Documentation

int NUnit.Framework.Internal.TestSuiteResult.passCount = 0
private
int NUnit.Framework.Internal.TestSuiteResult.failCount = 0
private
int NUnit.Framework.Internal.TestSuiteResult.skipCount = 0
private
int NUnit.Framework.Internal.TestSuiteResult.inconclusiveCount = 0
private

Property Documentation

override int NUnit.Framework.Internal.TestSuiteResult.FailCount
get

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

override int NUnit.Framework.Internal.TestSuiteResult.PassCount
get

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

override int NUnit.Framework.Internal.TestSuiteResult.SkipCount
get

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

override int NUnit.Framework.Internal.TestSuiteResult.InconclusiveCount
get

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


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