Class BddExtensions
Extensions that make it easier and or prettier to run BDD-style tests.
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. |