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, bool)
Initializes a new instance of the RepeatAttribute.RepeatedTestCommand class.
Declaration
public RepeatedTestCommand(TestCommand innerCommand, int repeatCount, bool stopOnFailure)
Parameters
| Type | Name | Description |
|---|---|---|
| TestCommand | innerCommand | The inner command. |
| int | repeatCount | The number of repetitions |
| bool | stopOnFailure | Whether to stop when a test is not successful or not |
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 |
Overrides
NUnit.Framework.Internal.Commands.TestCommand.Execute(NUnit.Framework.Internal.TestExecutionContext)