Table of Contents

Class ScenarioOutlineChain<TExample, T>

Namespace
TinyBDD
Assembly
TinyBDD.dll

Represents a scenario outline chain with a current value type.

public sealed class ScenarioOutlineChain<TExample, T>

Type Parameters

TExample

The type of example data.

T

The current value type in the chain.

Inheritance
ScenarioOutlineChain<TExample, T>
Inherited Members

Methods

And<TOut>(string, Func<T, TExample, TOut>)

Adds an And step that transforms the value using example data.

public ScenarioOutlineChain<TExample, TOut> And<TOut>(string title, Func<T, TExample, TOut> transform)

Parameters

title string

The step title.

transform Func<T, TExample, TOut>

A function that receives the current value and example data.

Returns

ScenarioOutlineChain<TExample, TOut>

A new chain with the transformed type.

Type Parameters

TOut

The output type.

And<TOut>(string, Func<T, TOut>)

Adds an And step that transforms the value without using example data.

public ScenarioOutlineChain<TExample, TOut> And<TOut>(string title, Func<T, TOut> transform)

Parameters

title string

The step title.

transform Func<T, TOut>

A function that receives the current value.

Returns

ScenarioOutlineChain<TExample, TOut>

A new chain with the transformed type.

Type Parameters

TOut

The output type.

Then(string, Func<T, bool>)

Adds a Then assertion without using example data.

public ScenarioOutlineTerminal<TExample, T> Then(string title, Func<T, bool> predicate)

Parameters

title string

The step title.

predicate Func<T, bool>

A predicate that receives the current value.

Returns

ScenarioOutlineTerminal<TExample, T>

A terminal chain that can be executed with examples.

Then(string, Func<T, TExample, bool>)

Adds a Then assertion that uses example data.

public ScenarioOutlineTerminal<TExample, T> Then(string title, Func<T, TExample, bool> predicate)

Parameters

title string

The step title.

predicate Func<T, TExample, bool>

A predicate that receives the current value and example data.

Returns

ScenarioOutlineTerminal<TExample, T>

A terminal chain that can be executed with examples.

When<TOut>(string, Func<T, TExample, TOut>)

Adds a When step that transforms the value using example data.

public ScenarioOutlineChain<TExample, TOut> When<TOut>(string title, Func<T, TExample, TOut> transform)

Parameters

title string

The step title.

transform Func<T, TExample, TOut>

A function that receives the current value and example data.

Returns

ScenarioOutlineChain<TExample, TOut>

A new chain with the transformed type.

Type Parameters

TOut

The output type.

When<TOut>(string, Func<T, TOut>)

Adds a When step that transforms the value without using example data.

public ScenarioOutlineChain<TExample, TOut> When<TOut>(string title, Func<T, TOut> transform)

Parameters

title string

The step title.

transform Func<T, TOut>

A function that receives the current value.

Returns

ScenarioOutlineChain<TExample, TOut>

A new chain with the transformed type.

Type Parameters

TOut

The output type.