Class RepeatAttribute.RepeatedTestCommand
The test command for the RepeatAttribute
Inherited Members
Namespace: NUnit.Framework
Assembly: nunit.framework.dll
Syntax
public class RepeatAttribute.RepeatedTestCommand : DelegatingTestCommand
Constructors
View SourceRepeatedTestCommand(TestCommand, int)
Initializes a new instance of the RepeatAttribute.RepeatedTestCommand class.
Declaration
public RepeatedTestCommand(TestCommand innerCommand, int repeatCount)
Parameters
Type | Name | Description |
---|---|---|
TestCommand | innerCommand | The inner command. |
int | repeatCount | The number of repetitions |
Methods
View SourceExecute(TestExecutionContext)
Runs the test, saving a TestResult in the supplied TestExecutionContext.
Declaration
public override TestResult Execute(TestExecutionContext context)
Parameters
Type | Name | Description |
---|---|---|
TestExecutionContext | context | The context in which the test should run. |
Returns
Type | Description |
---|---|
TestResult | A TestResult |