Class RetryAttribute.RetryCommand
The test command for the RetryAttribute
Inherited Members
Namespace: NUnit.Framework
Assembly: nunit.framework.dll
Syntax
public class RetryAttribute.RetryCommand : DelegatingTestCommand
Constructors
View SourceRetryCommand(TestCommand, int)
Initializes a new instance of the RetryAttribute.RetryCommand class.
Declaration
public RetryCommand(TestCommand innerCommand, int tryCount)
Parameters
Type | Name | Description |
---|---|---|
TestCommand | innerCommand | The inner command. |
int | tryCount | The maximum 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 |