Class ProtoRangeAssertions

Namespace
ProtoTest.Sheets
Assembly
ProtoTest.Sheets.dll

The Should/ShouldNot surface of a range. Each check is written once and runs with the polarity of the property that produced this facade.

public sealed class ProtoRangeAssertions
Inheritance
ProtoRangeAssertions
Inherited Members
Extension Methods

Methods

HaveDimensions(int, int)

Asserts the range has exactly this many rows and columns. Returns the range.

public ProtoRange HaveDimensions(int rows, int columns)

Parameters

rows int
columns int

Returns

ProtoRange

Match(IReadOnlyList<IReadOnlyList<string?>>)

Compares the range's text values to an expected table, row by row. Returns the range.

public ProtoRange Match(IReadOnlyList<IReadOnlyList<string?>> expected)

Parameters

expected IReadOnlyList<IReadOnlyList<string>>

Returns

ProtoRange