Class SheetModelAssertions
Row-level shape assertions for record models, reusing the Json shape matcher the REST and GraphQL integrations use. A row record serializes with its property names, so an anonymous expected shape reads the same way as elsewhere.
public static class SheetModelAssertions
- Inheritance
-
SheetModelAssertions
- Inherited Members
Methods
ShouldMatchShape<TRow>(TRow, object, JsonSerializerOptions?)
Matches one model row against an expected shape.
public static void ShouldMatchShape<TRow>(this TRow row, object expectedShape, JsonSerializerOptions? options = null)
Parameters
rowTRowexpectedShapeobjectoptionsJsonSerializerOptions
Type Parameters
TRow