Esempio n. 1
0
        public void CheckExcelFileData(string filename, string behavior, Table table)
        {
            var filePath = ConfigServiceBase.DownloadPath + filename;
            var dataList = ListServices.ExcelToCellsList(FileService.GetExcelFileAsDataSet(filePath),
                                                         table.RowCount, table.Rows.First().Count);

            var check = ListServices.CompareTwoLists(dataList, ListServices.TableToCellsList(table));

            File.Delete(filePath);
            check.Should().Be(!behavior.Contains("Not"));
        }