Exemplo n.º 1
0
        public void IfSettingSheetOrderShouldSetSheetOrderOfXssfWorkbook()
        {
            _objectToTest = new SXSSFWorkbook();
            _objectToTest.CreateSheet("test1");
            _objectToTest.CreateSheet("test2");

            _objectToTest.SetSheetOrder("test2", 0);

            Assert.AreEqual("test2", _objectToTest.GetSheetName(0));
            Assert.AreEqual("test1", _objectToTest.GetSheetName(1));
        }