Class ProtoCellAssertions
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
expectedobject
Returns
BeBlank()
Asserts the cell is empty. Returns the cell.
public ProtoCell BeBlank()
Returns
BeText()
Asserts the cell holds text. Returns the cell.
public ProtoCell BeText()
Returns
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
formulastring