• Home
  • .NET
  • Unity
  • Godot
  • Design Overview
  • API Documentation
  • Changelog
  • GitHub
Show / Hide Table of Contents
  • Responsible
    • BddExtensions
    • IExternalResultSource
    • IFailureListener
    • IGlobalContextProvider
    • IOptionalTestResponder
    • ITestInstruction<T>
    • ITestOperation<T>
    • ITestResponder<T>
    • ITestScheduler
    • ITestWaitCondition<T>
    • LinqSupport
    • OptionalTestResponder
    • RepetitionLimitExceededException
    • Responsibly
    • TestFailureException
    • TestInstruction
    • TestInstructionExecutor
    • TestInstructionExecutor.StateNotificationCallback
    • TestOperationState
    • TestResponder
    • TestWaitCondition
  • Responsible.Bdd
    • IBddStep
    • Keywords
    • ScenarioBuilder
  • Responsible.Context
    • RunContext
  • Responsible.Docs
    • Inherit
  • Responsible.State
    • ITestOperationState
    • ITestOperationState<T>
    • StateStringBuilder
    • TestOperationStateTransition
    • TestOperationStatus
  • Responsible.Unity
    • TestOperationYieldInstruction<T>
    • UnhandledLogMessageException
    • UnityErrorLogInterceptor
    • UnityFailureListener
    • UnityTestInstructionExecutor
    • UnityTestScheduler
  • Responsible.Utilities
    • IMultipleTaskAwaiter<T>
    • IMultipleTaskSource<T>
    • IndentedStringBuilder<T>
    • RetryingPoller

Interface ITestOperation<T>

Base interface for the test operation types in Responsible:

  • ITestInstruction<T>
  • ITestWaitCondition<T>
  • ITestResponder<T>
  • IOptionalTestResponder

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<out 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.

In this article
Back to top Generated by DocFX