Class TestOutputBindingAssertions

Namespace
XBullet.EasyTesting.AzureFunctions
Assembly
XBullet.EasyTesting.AzureFunctions.dll

Fluent assertions for output bindings captured during an invocation.

public sealed class TestOutputBindingAssertions
Inheritance
TestOutputBindingAssertions
Inherited Members

Methods

Contain(string)

Requires an output binding with the supplied name.

public TestOutputBindingAssertions Contain(string name)

Parameters

name string

The non-empty binding name, matched case-insensitively.

Returns

TestOutputBindingAssertions

This assertion object, for chaining, when the binding exists, including with a null value.

HaveCount(int)

Requires exactly expected captured output bindings.

public TestOutputBindingAssertions HaveCount(int expected)

Parameters

expected int

The exact required count. Negative values are accepted but can never match.

Returns

TestOutputBindingAssertions

This assertion object, for chaining, when the count matches.

HaveValue<T>(string, T)

Requires an output binding to equal the supplied value.

public TestOutputBindingAssertions HaveValue<T>(string name, T expected)

Parameters

name string

The non-empty binding name, matched case-insensitively.

expected T

The expected value, compared with Default.

Returns

TestOutputBindingAssertions

This assertion object, for chaining, when the typed values are equal.

Type Parameters

T

The expected value type; no conversion is performed.

NotContain(string)

Requires that an output binding was not captured.

public TestOutputBindingAssertions NotContain(string name)

Parameters

name string

The non-empty binding name, matched case-insensitively.

Returns

TestOutputBindingAssertions

This assertion object, for chaining, when the binding is absent.