Table of Contents

Class TestSuiteResult

Namespace
NUnit.Framework.Internal
Assembly
nunit.framework.dll

Represents the result of running a test suite

public class TestSuiteResult : TestResult, ITestResult, IXmlNodeBuilder
Inheritance
TestSuiteResult
Implements
Inherited Members

Constructors

TestSuiteResult(TestSuite)

Construct a TestSuiteResult base on a TestSuite

public TestSuiteResult(TestSuite suite)

Parameters

suite TestSuite

The TestSuite to which the result applies

Properties

Children

Gets the collection of child results.

public override IEnumerable<ITestResult> Children { get; }

Property Value

IEnumerable<ITestResult>

FailCount

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

public override int FailCount { get; }

Property Value

int

HasChildren

Indicates whether this result has any child results.

public override bool HasChildren { get; }

Property Value

bool

InconclusiveCount

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

public override int InconclusiveCount { get; }

Property Value

int

PassCount

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

public override int PassCount { get; }

Property Value

int

SkipCount

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

public override int SkipCount { get; }

Property Value

int

TotalCount

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

public override int TotalCount { get; }

Property Value

int

WarningCount

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

public override int WarningCount { get; }

Property Value

int

Methods

AddResult(ITestResult)

Adds a child result to this result, setting this result's ResultState to Failure if the child result failed.

public virtual void AddResult(ITestResult result)

Parameters

result ITestResult

The result to be added