Ejemplo n.º 1
0
        public void ExcelPackageHelper_ColumnChar()
        {
            //arrange
            Dictionary <int, string> expectedValues = new Dictionary <int, string>()
            {
                { 1, "A" },
                { 2, "B" },
                { 25, "Y" },
                { 26, "Z" },
                { 27, "AA" },
                { 28, "AB" }
            };

            //act
            //assert
            foreach (KeyValuePair <int, string> expectedValue in expectedValues)
            {
                Assert.AreEqual(expectedValue.Value, ExcelPackageHelper.ColumnChar(expectedValue.Key));
            }
        }