Пример #1
0
        public void ThrowsIndexOutOfRangeWhenSpecifyingToLargeIndexOfSheet()
        {
            WorkBook workBook = new WorkBook();
            workBook.OpenReadOnly(Common.WorkBook1);

            workBook.GetSheet(10000);
        }
Пример #2
0
        public void CanOpenBookForEdit()
        {
            WorkBook workBook = new WorkBook();
            Assert.DoesNotThrow(() => workBook.OpenForEdit(Common.WorkBook1));

            workBook.Close();
        }
Пример #3
0
        public void CanOpenBookReadOnly()
        {
            WorkBook workBook = new WorkBook();
            Assert.DoesNotThrow(() => workBook.OpenReadOnly(Common.WorkBook1));

            workBook.Close();
        }
Пример #4
0
        public void CanGetSheetByName()
        {
            WorkBook workBook = new WorkBook();
            workBook.OpenReadOnly(Common.WorkBook1);
            WorkSheet workSheet = workBook.GetSheet("Sheet1");

            Assert.IsNotNull(workSheet);
        }
Пример #5
0
 public void CantOpenNoneExistingBook()
 {
     WorkBook workBook = new WorkBook();
     workBook.OpenForEdit("bad path");
 }