• 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

Class BddExtensions

Extensions that make it easier and or prettier to run BDD-style tests.

Inheritance
object
BddExtensions
Namespace: Responsible
Assembly: Responsible.dll
Syntax
public static class BddExtensions

Methods

RunScenario(TestInstructionExecutor, ScenarioBuilder, params IBddStep[])

Helper method to concisely define BDD-style scenarios as a single expression-bodied test method.

Declaration
public static Task RunScenario(this TestInstructionExecutor executor, ScenarioBuilder scenario, params IBddStep[] steps)
Parameters
Type Name Description
TestInstructionExecutor executor

Test executor to use to run the scenario

ScenarioBuilder scenario

Scenario definition (provides name and source context)

IBddStep[] steps

Steps the scenario consists of.

Returns
Type Description
Task

Task representing the run state of the scenario.

In this article
Back to top Generated by DocFX