Class RetryAttribute.RetryCommand
The test command for the RetryAttribute
public class RetryAttribute.RetryCommand : DelegatingTestCommand
- Inheritance
-
RetryAttribute.RetryCommand
- Inherited Members
Constructors
RetryCommand(TestCommand, int)
Initializes a new instance of the RetryAttribute.RetryCommand class.
public RetryCommand(TestCommand innerCommand, int retryCount)
Parameters
innerCommand
TestCommandThe inner command.
retryCount
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