Interface ITestOperation<T>
Base interface for the test operation types in Responsible:
Test operations should be considered a set of instructions, which may be executed one or more times. This makes them reusable.
Namespace: Responsible
Assembly: Responsible.dll
Syntax
public interface ITestOperation<out T>
Type Parameters
Name | Description |
---|---|
T | Result type of the operation. |
Methods
CreateState()
Creates the state object for a single run of this test operation.
You should normally prefer using the To...
extension methods over
creating a state instance manually.
Declaration
[Pure]
[NotNull]
ITestOperationState<T> CreateState()
Returns
Type | Description |
---|---|
ITestOperationState<T> | A state object for this run of the test operation. |
Remarks
Converting an instance of ITestOperationState<T> to a string will dump full information of its current execution status.
Creating a state for a ITestWaitCondition<T> and running it directly will bypass the timeout mechanism which is otherwise enforced by Responsible, and might lead to an execution that never completes.