public void AppendRow_MaxExtents_ThrowsException() { SafeExecuteTest( MaxExtentsSheetPath, (sheetData) => { var target = new ArrayBasedSheetDataIndexer(sheetData); target.AppendRow(new Row()); }); }
public void AppendRow_EmptySpreadsheet_IncreasesCountByOne() { SafeExecuteTest( EmptySheetPath, (sheetData) => { var target = new ArrayBasedSheetDataIndexer(sheetData); target.AppendRow(new Row()); Assert.IsFalse(target.IsEmpty); Assert.AreEqual(1, target.Count); Assert.AreEqual(1, target.MaxRowIndex); // Row indices are one based. ValidateRowSequence(target); }); }