public void ReadEmptyTestFile()
 {
     using (var stream = TestLogFiles.OpenEmptyTestFile())
     {
         var results = new SimpleLinePerLineReader(stream).ReadLines().ToList();
         results.Should().Equal(new List <ReadLogLineResult>());
     }
 }
Ejemplo n.º 2
0
 public void ReadyEmptyTestFile()
 {
     using (var stream = TestLogFiles.OpenEmptyTestFile())
     {
         var results = new CsvLogReader <TestEvent>(stream, null, null).ReadLines().ToList();
         results.Should().Equal(new List <TestEvent>());
     }
 }
Ejemplo n.º 3
0
 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);
            }
        }