public void ReadFile_EmptyFile_ShouldReturnEmpty_Test() { DeleteFile(_inputFilePath); CreateFile(_inputFilePath, ""); var text = _fileReaderService.ReadFile(); Assert.IsEmpty(text); }
public ParseResults ValidateFile(FilePayload filePayload) { fileCompressionService.DecompressFile(filePayload.DownloadFilePath, filePayload.DecompressedDownloadFilePath); fileReaderService.ReadFile(filePayload); ParseResults parseResults = statsFileParserService.Parse(filePayload); filePayload.FileUtcDateTime = parseResults.DownloadDateTime; return(parseResults); }