Class ResultSummary
Helper class used to summarize the result of a test run
Inherited Members
Namespace: NUnitLite
Assembly: nunitlite.dll
Syntax
public class ResultSummary
Constructors
View SourceResultSummary(ITestResult)
Initializes a new instance of the ResultSummary class.
Declaration
public ResultSummary(ITestResult result)
Parameters
| Type | Name | Description |
|---|---|---|
| ITestResult | result | The result. |
Properties
View SourceDuration
Gets or sets the elapsed time for running the test in seconds
Declaration
public double Duration { get; }
Property Value
| Type | Description |
|---|---|
| double |
EndTime
Gets or sets the time the test finished running.
Declaration
public DateTime EndTime { get; }
Property Value
| Type | Description |
|---|---|
| DateTime |
ErrorCount
Gets the error count
Declaration
public int ErrorCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
ExplicitCount
Gets the explicit count
Declaration
public int ExplicitCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
FailedCount
Returns the number of failed test cases (including errors and invalid tests)
Declaration
public int FailedCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
FailureCount
Gets count of failed tests, excluding errors and invalid tests
Declaration
public int FailureCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
IgnoreCount
Gets the ignore count
Declaration
public int IgnoreCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
InconclusiveCount
Gets the count of inconclusive tests
Declaration
public int InconclusiveCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
InvalidCount
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.
Declaration
public int InvalidCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
InvalidTestFixtures
Invalid Test Fixtures
Declaration
public int InvalidTestFixtures { get; }
Property Value
| Type | Description |
|---|---|
| int |
NotRunCount
Gets the number of tests not run for any reason.
Declaration
public int NotRunCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
PassCount
Gets the count of passed tests
Declaration
public int PassCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
ResultState
Gets the ResultState of the test result, which indicates the success or failure of the test.
Declaration
public ResultState ResultState { get; }
Property Value
| Type | Description |
|---|---|
| ResultState |
RunCount
Returns the number of test cases actually run.
Declaration
public int RunCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
SkipCount
Gets the count of skipped tests, excluding ignored tests
Declaration
public int SkipCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
StartTime
Gets or sets the time the test started running.
Declaration
public DateTime StartTime { get; }
Property Value
| Type | Description |
|---|---|
| DateTime |
TestCount
Gets the number of test cases for which results have been summarized. Any tests excluded by use of Category or Explicit attributes are not counted.
Declaration
public int TestCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
TotalSkipCount
Returns the sum of skipped test cases, including ignored and explicit tests
Declaration
public int TotalSkipCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
WarningCount
Gets count of tests with warnings
Declaration
public int WarningCount { get; }
Property Value
| Type | Description |
|---|---|
| int |