Class RepeatAttribute.RepeatedTestCommand
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
TestCommandThe inner command.
repeatCount
intThe number of repetitions
Methods
Execute(TestExecutionContext)
Runs the test, saving a TestResult in the supplied TestExecutionContext.
public override TestResult Execute(TestExecutionContext context)
Parameters
context
TestExecutionContextThe context in which the test should run.
Returns
- TestResult
A TestResult