Class ProtoModelColumn<TValue>
A typed model column with property-style assertions over its values.
public sealed class ProtoModelColumn<TValue>
Type Parameters
TValue
- Inheritance
-
ProtoModelColumn<TValue>
- Inherited Members
- Extension Methods
Properties
Header
public string Header { get; }
Property Value
Should
The positive assertions of this column, for example Should.Be([1200m, 900m]).
public ProtoModelColumnAssertions<TValue> Should { get; }
Property Value
- ProtoModelColumnAssertions<TValue>
ShouldNot
The negated assertions of this column, for example ShouldNot.BeSortedBy().
public ProtoModelColumnAssertions<TValue> ShouldNot { get; }
Property Value
- ProtoModelColumnAssertions<TValue>
Values
public IReadOnlyList<TValue?> Values { get; }
Property Value
- IReadOnlyList<TValue>
Methods
ShouldAll(Func<TValue?, bool>)
Checks every value against a property, for example every amount above zero.
public void ShouldAll(Func<TValue?, bool> predicate)