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.
public void Be(object? expected)
Parameters
expectedobject
BeBlank()
Asserts the cell is empty.
public void BeBlank()
BeText()
Asserts the cell holds text.
public void BeText()
HaveFormula(string)
Asserts the cell holds exactly this formula (the cached value stays in the typed values).
public void HaveFormula(string formula)
Parameters
formulastring