public void CanOpenBookReadOnly() { WorkBook workBook = new WorkBook(); Assert.DoesNotThrow(() => workBook.OpenReadOnly(Common.WorkBook1)); workBook.Close(); }
public void ThrowsIndexOutOfRangeWhenSpecifyingToLargeIndexOfSheet() { WorkBook workBook = new WorkBook(); workBook.OpenReadOnly(Common.WorkBook1); workBook.GetSheet(10000); }
public void CanGetSheetByName() { WorkBook workBook = new WorkBook(); workBook.OpenReadOnly(Common.WorkBook1); WorkSheet workSheet = workBook.GetSheet("Sheet1"); Assert.IsNotNull(workSheet); }