Esempio n. 1
0
        public void ReadAndWrite()
        {
            var xl = new TestFileContext("test.xlsx");

            xl.SerializeToFile("test-out.xlsx");
            xl.SerializeToStream();
            xl.SerializeToExcelPackage();
            var xl2 = new TestFileContext("test-out.xlsx");

            Assert.AreEqual(xl.GetSheet <TestFileContext.Sheet1>().Count, xl2.GetSheet <TestFileContext.Sheet1>().Count);
            Assert.AreEqual(xl.GetSheet <Class1>().Count, xl2.GetSheet <Class1>().Count);
        }