Ejemplo n.º 1
0
        public void ReadExcelFileWithInvalidFormatOfCells_ShouldThrowException()
        {
            var currentDirectory = GetProjectFSPath();
            var filePath         = $@"{currentDirectory}/invalid.xlsx";

            FilesOperations.ReadExcelFile(filePath);
        }
Ejemplo n.º 2
0
        public void ReadValidExcelFile_XlsExtension_ShouldReturnNotEmptyData()
        {
            var currentDirectory = GetProjectFSPath();
            var filePath         = $@"{currentDirectory}/testOldFormat.xls";
            var data             = FilesOperations.ReadExcelFile(filePath);

            Assert.IsNotNull(data);
        }
Ejemplo n.º 3
0
        public void ReadExcelFile_XlsxExtension()
        {
            var currentDirectory = GetProjectFSPath();
            var filePath         = $@"{currentDirectory}/test.xlsx";
            var data             = FilesOperations.ReadExcelFile(filePath);

            Assert.IsNotNull(data);
        }