Table of Contents

Class RetryAttribute.RetryCommand

Namespace
NUnit.Framework
Assembly
nunit.framework.dll

The test command for the RetryAttribute

public class RetryAttribute.RetryCommand : DelegatingTestCommand
Inheritance
RetryAttribute.RetryCommand
Inherited Members

Constructors

RetryCommand(TestCommand, int)

Initializes a new instance of the RetryAttribute.RetryCommand class.

public RetryCommand(TestCommand innerCommand, int retryCount)

Parameters

innerCommand TestCommand

The inner command.

retryCount int

The number of repetitions

Methods

Execute(TestExecutionContext)

Runs the test, saving a TestResult in the supplied TestExecutionContext.

public override TestResult Execute(TestExecutionContext context)

Parameters

context TestExecutionContext

The context in which the test should run.

Returns

TestResult

A TestResult