Table of Contents

Class RepeatAttribute.RepeatedTestCommand

Namespace
NUnit.Framework
Assembly
nunit.framework.dll

The test command for the RepeatAttribute

public class RepeatAttribute.RepeatedTestCommand : DelegatingTestCommand
Inheritance
RepeatAttribute.RepeatedTestCommand
Inherited Members

Constructors

RepeatedTestCommand(TestCommand, int)

Initializes a new instance of the RepeatAttribute.RepeatedTestCommand class.

public RepeatedTestCommand(TestCommand innerCommand, int repeatCount)

Parameters

innerCommand TestCommand

The inner command.

repeatCount 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