Class ProtoKeyValueEntryAssertions<TValue>

Namespace
ProtoTest.Sheets
Assembly
ProtoTest.Sheets.dll

The Should/ShouldNot surface of one key-value entry. The comparison is the cell assertion's own, so an entry asserts exactly like the cell it reads, and the failure names the label beside the cell.

public sealed class ProtoKeyValueEntryAssertions<TValue>

Type Parameters

TValue
Inheritance
ProtoKeyValueEntryAssertions<TValue>
Inherited Members
Extension Methods

Methods

Be(TValue?)

Asserts the entry's cell holds the expected text, number, boolean or date typed from the file; a null expectation asserts the cell holds no text. Returns the entry.

public ProtoKeyValueEntry<TValue> Be(TValue? expected)

Parameters

expected TValue

Returns

ProtoKeyValueEntry<TValue>