public async void CheckExcelFile_Bool_ShouldBeReturnFalse(DateTime datetimeUtc, int flag, bool expected) { // Arrange var fileService = new FileService(); var fileName = TestValueProvider.GetValueStringByFlag(flag); // Act var result = await fileService.CheckExcelFile(datetimeUtc, fileName); // Assert Assert.Equal(expected, result); }
public async void CheckExcelFile_Bool_ShouldBeReturnTrue(int urlFlag, int fileNameFlag, bool expected) { // Arrange var dateTime = DateTime.Now; var fileService = new FileService(); var fileName = TestValueProvider.GetValueStringByFlag(fileNameFlag); await fileService.DownloadByLinkAsync(new Uri(TestValueProvider.GetValueStringByFlag(urlFlag)), fileName, CancellationToken.None); // Act var result = await fileService.CheckExcelFile(dateTime, fileName); _testOutputHelper.WriteLine(result.ToString(CultureInfo.CurrentCulture)); // Assert Assert.Equal(expected, result); }