public void TestRowEntries() { using (var reader = new CsvRowStreamReader("test.csv", new CsvStreamOptions() { RemoveEmptyEntries = true })) { var entries = reader.AsEnumerable(out var header).ToList(); Assert.AreEqual(entries.Count(), 24); } }
public void TestRowStream() { var stream = StreamHelper.GenerateStream("This is an example message\r\nThe Data follows this\r\nAnother Test String"); using (var reader = new CsvRowStreamReader(stream, new CsvStreamOptions() { RemoveEmptyEntries = true })) { var entries = reader.AsEnumerable(out var header).ToList(); Assert.AreEqual(header, "This is an example message"); Assert.AreEqual(entries[0], "The Data follows this"); Assert.AreEqual(entries[1], "Another Test String"); } }