public void ReadTestFileWithCsvData() { using (var stream = TestLogFiles.OpenTestFileWithCsvData()) { var results = new CsvLogReader <TestEvent>(stream, null, null).ReadLines().ToList(); results.Should().BeEquivalentTo(ExpectedResults); } }
public void ReadyEmptyTestFile() { using (var stream = TestLogFiles.OpenEmptyTestFile()) { var results = new CsvLogReader <TestEvent>(stream, null, null).ReadLines().ToList(); results.Should().Equal(new List <TestEvent>()); } }