Example #1
0
        public void WriteReport4()
        {
            var          filepath = Environment.CurrentDirectory + @"\d.xlsx";
            GenerateXLXS writer   = new GenerateXLXS();

            writer.WriteAllDStudents(filepath, "OrderBuuuy");
        }
Example #2
0
        public void Report3GenerationTest()
        {
            var filepath = Environment.CurrentDirectory + @"\c.xlsx";

            GenerateXLXS writer = new GenerateXLXS();

            writer.WriteAllDStudents(filepath, "OrderBy");

            long strs = 0;

            using (var reader = new FileStream(filepath, FileMode.Open))
            {
                strs = reader.Length;
            }

            Assert.IsTrue(strs > 0);
        }