IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
NUnit.Framework.RetryAttribute.RetryCommand Class Reference

The test command for the RetryAttribute More...

+ Inheritance diagram for NUnit.Framework.RetryAttribute.RetryCommand:
+ Collaboration diagram for NUnit.Framework.RetryAttribute.RetryCommand:

Public Member Functions

 RetryCommand (TestCommand innerCommand, int retryCount)
 Initializes a new instance of the RetryCommand class. More...
 
override TestResult Execute (TestExecutionContext context)
 Runs the test, saving a TestResult in the supplied TestExecutionContext. More...
 
- Public Member Functions inherited from NUnit.Framework.Internal.Commands.TestCommand
 TestCommand (Test test)
 Construct a TestCommand for a test. More...
 

Private Attributes

int _retryCount
 

Additional Inherited Members

- Protected Member Functions inherited from NUnit.Framework.Internal.Commands.DelegatingTestCommand
 DelegatingTestCommand (TestCommand innerCommand)
 TODO: Documentation needed for constructor More...
 
- Protected Attributes inherited from NUnit.Framework.Internal.Commands.DelegatingTestCommand
TestCommand innerCommand
 TODO: Documentation needed for field More...
 
- Properties inherited from NUnit.Framework.Internal.Commands.TestCommand
Test Test [get, private set]
 Gets the test associated with this command. More...
 

Detailed Description

The test command for the RetryAttribute

Constructor & Destructor Documentation

NUnit.Framework.RetryAttribute.RetryCommand.RetryCommand ( TestCommand  innerCommand,
int  retryCount 
)
inline

Initializes a new instance of the RetryCommand class.

Parameters
innerCommandThe inner command.
retryCountThe number of repetitions

Member Function Documentation

override TestResult NUnit.Framework.RetryAttribute.RetryCommand.Execute ( TestExecutionContext  context)
inlinevirtual

Runs the test, saving a TestResult in the supplied TestExecutionContext.

Parameters
contextThe context in which the test should run.
Returns
A TestResult

Implements NUnit.Framework.Internal.Commands.TestCommand.

References NUnit.Framework.Internal.TestExecutionContext.CurrentResult, NUnit.Framework.Interfaces.ResultState.Failure, and NUnit.Framework.Internal.TestResult.ResultState.

Member Data Documentation

int NUnit.Framework.RetryAttribute.RetryCommand._retryCount
private

The documentation for this class was generated from the following file: