Class ProtoKeyValueEntry<TValue>
One label/value entry of a key-value sheet: the label the sheet carries, the value converted to the model's property type, and the assertions. Should compares with the cell assertion's own rules, text ordinals, numbers within 1e-6 and dates within a second.
public sealed class ProtoKeyValueEntry<TValue>
Type Parameters
TValue
- Inheritance
-
ProtoKeyValueEntry<TValue>
- Inherited Members
- Extension Methods
Properties
Label
The label the sheet carries, as declared by the property's [Label("...")].
public string Label { get; }
Property Value
Should
The positive assertions of this entry, for example Should.Be(123.45m).
public ProtoKeyValueEntryAssertions<TValue> Should { get; }
Property Value
- ProtoKeyValueEntryAssertions<TValue>
ShouldNot
The negated assertions of this entry, for example ShouldNot.Be(0m).
public ProtoKeyValueEntryAssertions<TValue> ShouldNot { get; }
Property Value
- ProtoKeyValueEntryAssertions<TValue>
Value
The cell's value converted to the model's property type; null for an empty cell.
public TValue? Value { get; }
Property Value
- TValue