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

            writer.WriteAllDStudents(filepath, "OrderBuuuy");
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
        public void Report1GenerationTest()
        {
            var          filepath    = Environment.CurrentDirectory + @"\a.xlsx";
            var          TypeOfOrder = "OrderBy";
            GenerateXLXS writer      = new GenerateXLXS();

            writer.WriteSpecialityGrade(1, filepath, TypeOfOrder);

            long strs = 0;

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

            Assert.IsTrue(strs > 0);
        }