Class ProtoSheetModelAssertions<TRow>
The assertions of one record model, reached through Should and ShouldNot; each member returns the model, so assertions chain.
public sealed class ProtoSheetModelAssertions<TRow> where TRow : notnull
Type Parameters
TRow
- Inheritance
-
ProtoSheetModelAssertions<TRow>
- Inherited Members
- Extension Methods
Methods
MatchHeaders()
Checks the sheet's header row against the model's declared columns: every [Column] path
must appear at its declaration position, the sheet must declare exactly as many columns as the
model, and a single-segment path matches the end of a layered path. The header read contributes
coverage. Returns the model.
public ProtoSheetModel<TRow> MatchHeaders()
Returns
- ProtoSheetModel<TRow>
MatchModel()
Checks every declared column against the record's shape and reports all violations in one failure. Returns the model.
public ProtoSheetModel<TRow> MatchModel()
Returns
- ProtoSheetModel<TRow>