Class ProtoCell

Namespace
ProtoTest.Sheets
Assembly
ProtoTest.Sheets.dll

One cell. Values are typed best-effort from the OpenXML cell type and number format: text, number, boolean or date, with the formula text kept alongside its cached value. Assertions are traced and fail with the sheet, reference, expected and actual value.

public sealed class ProtoCell
Inheritance
ProtoCell
Inherited Members
Extension Methods

Properties

Boolean

public bool? Boolean { get; }

Property Value

bool?

Date

public DateTime? Date { get; }

Property Value

DateTime?

Formula

The formula text when the cell holds one; the cached result is in the typed values.

public string? Formula { get; }

Property Value

string

IsEmpty

public bool IsEmpty { get; }

Property Value

bool

Number

public double? Number { get; }

Property Value

double?

Reference

public string Reference { get; }

Property Value

string

Should

The positive assertions of this cell, for example Should.Be("Total").

public ProtoCellAssertions Should { get; }

Property Value

ProtoCellAssertions

ShouldNot

The negated assertions of this cell, for example ShouldNot.BeBlank().

public ProtoCellAssertions ShouldNot { get; }

Property Value

ProtoCellAssertions

Text

public string? Text { get; }

Property Value

string