Пример #1
0
 public void AppendRow_MaxExtents_ThrowsException()
 {
     SafeExecuteTest(
         MaxExtentsSheetPath,
         (sheetData) =>
         {
             var target = new ArrayBasedSheetDataIndexer(sheetData);
             target.AppendRow(new Row());
         });
 }
Пример #2
0
        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);
                });
        }