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.Engine.Addins.NUnit2ResultSummary Class Reference

NUnit2ResultSummary summarizes test results as used in the NUnit2 XML format. More...

Public Member Functions

 NUnit2ResultSummary ()
 
 NUnit2ResultSummary (XmlNode result)
 

Properties

string Name [get]
 
bool Success [get]
 
int ResultCount [get]
 Returns the number of test cases for which results have been summarized. Any tests excluded by use of Category or Explicit attributes are not counted. More...
 
int TestsRun [get]
 Returns the number of test cases actually run, which is the same as ResultCount, less any Skipped, Ignored or NonRunnable tests. More...
 
int Passed [get]
 Returns the number of tests that passed More...
 
int Errors [get]
 Returns the number of test cases that had an error. More...
 
int Failures [get]
 Returns the number of test cases that failed. More...
 
int Inconclusive [get]
 Returns the number of test cases that failed. More...
 
int NotRunnable [get]
 Returns the number of test cases that were not runnable due to errors in the signature of the class or method. Such tests are also counted as Errors. More...
 
int Skipped [get]
 Returns the number of test cases that were skipped. More...
 
int Ignored [get]
 
DateTime StartTime [get]
 Gets the start time of the test run. More...
 
DateTime EndTime [get]
 Gets the end time of the test run. More...
 
double Duration [get]
 Gets the duration of the test run in seconds. More...
 
int TestsNotRun [get]
 
int ErrorsAndFailures [get]
 

Private Member Functions

void Summarize (XmlNode node)
 

Private Attributes

int resultCount = 0
 
int testsRun = 0
 
int failureCount = 0
 
int errorCount = 0
 
int successCount = 0
 
int inconclusiveCount = 0
 
int skipCount = 0
 
int ignoreCount = 0
 
int notRunnable = 0
 
DateTime startTime = DateTime.MinValue
 
DateTime endTime = DateTime.MaxValue
 
double duration = 0.0d
 
string name
 

Detailed Description

NUnit2ResultSummary summarizes test results as used in the NUnit2 XML format.

Constructor & Destructor Documentation

NUnit.Engine.Addins.NUnit2ResultSummary.NUnit2ResultSummary ( )
inline
NUnit.Engine.Addins.NUnit2ResultSummary.NUnit2ResultSummary ( XmlNode  result)
inline

Member Function Documentation

void NUnit.Engine.Addins.NUnit2ResultSummary.Summarize ( XmlNode  node)
inlineprivate

Member Data Documentation

int NUnit.Engine.Addins.NUnit2ResultSummary.resultCount = 0
private
int NUnit.Engine.Addins.NUnit2ResultSummary.testsRun = 0
private
int NUnit.Engine.Addins.NUnit2ResultSummary.failureCount = 0
private
int NUnit.Engine.Addins.NUnit2ResultSummary.errorCount = 0
private
int NUnit.Engine.Addins.NUnit2ResultSummary.successCount = 0
private
int NUnit.Engine.Addins.NUnit2ResultSummary.inconclusiveCount = 0
private
int NUnit.Engine.Addins.NUnit2ResultSummary.skipCount = 0
private
int NUnit.Engine.Addins.NUnit2ResultSummary.ignoreCount = 0
private
int NUnit.Engine.Addins.NUnit2ResultSummary.notRunnable = 0
private
DateTime NUnit.Engine.Addins.NUnit2ResultSummary.startTime = DateTime.MinValue
private
DateTime NUnit.Engine.Addins.NUnit2ResultSummary.endTime = DateTime.MaxValue
private
double NUnit.Engine.Addins.NUnit2ResultSummary.duration = 0.0d
private
string NUnit.Engine.Addins.NUnit2ResultSummary.name
private

Property Documentation

string NUnit.Engine.Addins.NUnit2ResultSummary.Name
get
bool NUnit.Engine.Addins.NUnit2ResultSummary.Success
get
int NUnit.Engine.Addins.NUnit2ResultSummary.ResultCount
get

Returns the number of test cases for which results have been summarized. Any tests excluded by use of Category or Explicit attributes are not counted.

Referenced by NUnit.Engine.Addins.NUnit2XmlResultWriter.InitializeXmlFile().

int NUnit.Engine.Addins.NUnit2ResultSummary.TestsRun
get

Returns the number of test cases actually run, which is the same as ResultCount, less any Skipped, Ignored or NonRunnable tests.

int NUnit.Engine.Addins.NUnit2ResultSummary.Passed
get

Returns the number of tests that passed

int NUnit.Engine.Addins.NUnit2ResultSummary.Errors
get

Returns the number of test cases that had an error.

Referenced by NUnit.Engine.Addins.NUnit2XmlResultWriter.InitializeXmlFile().

int NUnit.Engine.Addins.NUnit2ResultSummary.Failures
get

Returns the number of test cases that failed.

Referenced by NUnit.Engine.Addins.NUnit2XmlResultWriter.InitializeXmlFile().

int NUnit.Engine.Addins.NUnit2ResultSummary.Inconclusive
get

Returns the number of test cases that failed.

Referenced by NUnit.Engine.Addins.NUnit2XmlResultWriter.InitializeXmlFile().

int NUnit.Engine.Addins.NUnit2ResultSummary.NotRunnable
get

Returns the number of test cases that were not runnable due to errors in the signature of the class or method. Such tests are also counted as Errors.

Referenced by NUnit.Engine.Addins.NUnit2XmlResultWriter.InitializeXmlFile().

int NUnit.Engine.Addins.NUnit2ResultSummary.Skipped
get

Returns the number of test cases that were skipped.

Referenced by NUnit.Engine.Addins.NUnit2XmlResultWriter.InitializeXmlFile().

int NUnit.Engine.Addins.NUnit2ResultSummary.Ignored
get
DateTime NUnit.Engine.Addins.NUnit2ResultSummary.StartTime
get

Gets the start time of the test run.

DateTime NUnit.Engine.Addins.NUnit2ResultSummary.EndTime
get

Gets the end time of the test run.

double NUnit.Engine.Addins.NUnit2ResultSummary.Duration
get

Gets the duration of the test run in seconds.

int NUnit.Engine.Addins.NUnit2ResultSummary.TestsNotRun
get
int NUnit.Engine.Addins.NUnit2ResultSummary.ErrorsAndFailures
get

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