public void IfSheetNameByIndexShouldGetSheetNameFromXssfWorkbook() { _objectToTest = new SXSSFWorkbook(); _objectToTest.CreateSheet("test1"); _objectToTest.CreateSheet("test2"); _objectToTest.SetSelectedTab(0); Assert.IsTrue(_objectToTest.GetSheetAt(0).IsSelected); }
public void IfSettingSelectedTabShouldSetSelectedTabOfXssfWorkbook() { _objectToTest = new SXSSFWorkbook(); _objectToTest.CreateSheet("test1"); _objectToTest.CreateSheet("test2"); _objectToTest.SetSelectedTab(0); Assert.IsTrue(_objectToTest.GetSheetAt(0).IsSelected); }