Represents the execution status of a test operation run created with CreateState().
Mostly intended for internal use.
public interface ITestOperationState<out T> : ITestOperationState
Return type of the test operation.
All implementations of ITestOperationState<T> in Responsible
have an override of
which will produce a full textual representation of the execution state.
Starts execution of the the operation this state was created from.
Intended for internal use only.
Task<TResult> ExecuteUnsafe<TResult>(RunContext runContext, CancellationToken cancellationToken)
The test operation run context this run is part of.
Cancellation token for canceling the run.
An task, which will complete with the result of the operation, or an error on failure.
Due to lack of support for covariant generic classes and constraints in C#, we have to use this unsafe method. However, it is used only from an extension method, which does the correct type inference for us, so overall, things are safe.