public async Task FileSizePrintAccuracyTest() { _printedData = string.Empty; MakeTempFile(); SizeService service = new SizeService(new FolderDetails { Path = _tempFolderPath }); await service.FileSizePrint(printToString, _tempFilePath); FileInfo file = new FileInfo(_tempFilePath); Assert.Equal(file.Length.ToString(), _printedData.Trim()); }