Table of Contents

Class RepeatAttribute

Namespace
NUnit.Framework
Assembly
nunit.framework.dll

RepeatAttribute may be applied to test case in order to run it multiple times.

[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public class RepeatAttribute : PropertyAttribute, IApplyToTest, IWrapSetUpTearDown, ICommandWrapper
Inheritance
RepeatAttribute
Implements
Inherited Members

Constructors

RepeatAttribute(int)

Construct a RepeatAttribute

public RepeatAttribute(int count)

Parameters

count int

The number of times to run the test

Methods

Wrap(TestCommand)

Wrap a command and return the result.

public TestCommand Wrap(TestCommand command)

Parameters

command TestCommand

The command to be wrapped

Returns

TestCommand

The wrapped command