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.

public void HaveDimensions(int rows, int columns)

Parameters

rows int
columns int

Match(IReadOnlyList<IReadOnlyList<string?>>)

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

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

Parameters

expected IReadOnlyList<IReadOnlyList<string>>