Class ProtoModelColumnAssertions<TValue>

Namespace
ProtoTest.Sheets
Assembly
ProtoTest.Sheets.dll

The Should/ShouldNot surface of a typed model column. The comparison is written once and runs with the polarity of the property that produced this facade.

public sealed class ProtoModelColumnAssertions<TValue>

Type Parameters

TValue
Inheritance
ProtoModelColumnAssertions<TValue>
Inherited Members
Extension Methods

Methods

Be(IReadOnlyList<TValue?>)

Compares the column's values against the expected sequence, top to bottom.

public void Be(IReadOnlyList<TValue?> expected)

Parameters

expected IReadOnlyList<TValue>

BeSortedBy(bool)

Checks the values are ordered.

public void BeSortedBy(bool ascending = true)

Parameters

ascending bool