public void ReadEmptyTestFile() { using (var stream = TestLogFiles.OpenEmptyTestFile()) { var results = new SimpleLinePerLineReader(stream).ReadLines().ToList(); results.Should().Equal(new List <ReadLogLineResult>()); } }
public void ReadyEmptyTestFile() { using (var stream = TestLogFiles.OpenEmptyTestFile()) { var results = new CsvLogReader <TestEvent>(stream, null, null).ReadLines().ToList(); results.Should().Equal(new List <TestEvent>()); } }
public void ReadEmptyTestFile() { using (var stream = TestLogFiles.OpenEmptyTestFile()) { var reader = new NativeJsonLogsReader(stream, null, null); var results = reader.ReadLines().ToList(); results.Should().Equal(new List <ReadLogLineResult>()); } }
public void ReadEmptyTestFile() { var expectedResult = new List <ReadLogLineResult> { new ReadLogLineResult(0, null) }; using (var stream = TestLogFiles.OpenEmptyTestFile()) { var results = new YamlConfigLogReader(stream).ReadLines().ToList(); results.Should().BeEquivalentTo(expectedResult); } }