|
| 1 | +/******************************************************************************* |
| 2 | + * You may amend and distribute as you like, but don't remove this header! |
| 3 | + * |
| 4 | + * Required Notice: Copyright (C) EPPlus Software AB. |
| 5 | + * https://epplussoftware.com |
| 6 | + * |
| 7 | + * This library is free software; you can redistribute it and/or |
| 8 | + * modify it under the terms of the GNU Lesser General Public |
| 9 | + * License as published by the Free Software Foundation; either |
| 10 | + * version 2.1 of the License, or (at your option) any later version. |
| 11 | +
|
| 12 | + * This library is distributed in the hope that it will be useful, |
| 13 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 15 | + * See the GNU Lesser General Public License for more details. |
| 16 | + * |
| 17 | + * The GNU Lesser General Public License can be viewed at http://www.opensource.org/licenses/lgpl-license.php |
| 18 | + * If you unfamiliar with this license or have questions about it, here is an http://www.gnu.org/licenses/gpl-faq.html |
| 19 | + * |
| 20 | + * All code and executables are provided "" as is "" with no warranty either express or implied. |
| 21 | + * The author accepts no liability for any damage or loss of business that this product may cause. |
| 22 | + * |
| 23 | + * Code change notes: |
| 24 | + * |
| 25 | + Date Author Change |
| 26 | + ******************************************************************************* |
| 27 | + 01/27/2020 EPPlus Software AB Initial release EPPlus 5 |
| 28 | + *******************************************************************************/using Microsoft.VisualStudio.TestTools.UnitTesting; |
| 29 | +using OfficeOpenXml; |
| 30 | +using System; |
| 31 | +using System.Collections.Generic; |
| 32 | +using System.Linq; |
| 33 | +using System.Text; |
| 34 | +using System.Threading.Tasks; |
| 35 | + |
| 36 | +namespace EPPlusTest.Issues |
| 37 | +{ |
| 38 | + [TestClass] |
| 39 | + public class CellStoreIssues |
| 40 | + { |
| 41 | + [TestMethod] |
| 42 | + public void Issue2228() |
| 43 | + { |
| 44 | + using var pck = new ExcelPackage(); |
| 45 | + var worksheet = pck.Workbook.Worksheets.Add("Sheet1"); |
| 46 | + for (int i = 1; i < 10; i++) |
| 47 | + { |
| 48 | + worksheet.InsertColumn(i, 1); |
| 49 | + } |
| 50 | + } |
| 51 | + } |
| 52 | +} |
0 commit comments