Class ProtoCellAssertions

Namespace
ProtoTest.Sheets
Assembly
ProtoTest.Sheets.dll

The Should/ShouldNot surface of a cell. Each check is implemented once and its polarity is fixed by the property that produced this facade, so a negative failure reads "Expected ... not to ..." and carries the same evidence as the positive one.

public sealed class ProtoCellAssertions
Inheritance
ProtoCellAssertions
Inherited Members
Extension Methods

Methods

Be(object?)

Asserts the cell holds the expected text, number, boolean or date typed from the file. A null expectation asserts the cell holds no text. Returns the cell.

public ProtoCell Be(object? expected)

Parameters

expected object

Returns

ProtoCell

BeBlank()

Asserts the cell is empty. Returns the cell.

public ProtoCell BeBlank()

Returns

ProtoCell

BeText()

Asserts the cell holds text. Returns the cell.

public ProtoCell BeText()

Returns

ProtoCell

HaveFormula(string)

Asserts the cell holds exactly this formula (the cached value stays in the typed values). Returns the cell.

public ProtoCell HaveFormula(string formula)

Parameters

formula string

Returns

ProtoCell