コード例 #1
0
 public void ReadEmptyTestFile()
 {
     using (var stream = TestLogFiles.OpenEmptyTestFile())
     {
         var results = new SimpleLinePerLineReader(stream).ReadLines().ToList();
         results.Should().Equal(new List <ReadLogLineResult>());
     }
 }
コード例 #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>());
     }
 }
コード例 #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>());
     }
 }
コード例 #4
0
        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);
            }
        }