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
namestringThe 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
expectedintThe 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
namestringThe non-empty binding name, matched case-insensitively.
expectedTThe expected value, compared with Default.
Returns
- TestOutputBindingAssertions
This assertion object, for chaining, when the typed values are equal.
Type Parameters
TThe expected value type; no conversion is performed.
NotContain(string)
Requires that an output binding was not captured.
public TestOutputBindingAssertions NotContain(string name)
Parameters
namestringThe non-empty binding name, matched case-insensitively.
Returns
- TestOutputBindingAssertions
This assertion object, for chaining, when the binding is absent.