32 references to ReadFields
Microsoft.Data.Analysis.Tests (32)
TextFieldParserTests.cs (32)
189Assert.Equal(new[] { "abc", "123" }, parser.ReadFields());
193Assert.Throws<Exception>(() => parser.ReadFields());
197Assert.Equal(new[] { "ghi", "789" }, parser.ReadFields());
211Assert.Equal(new[] { "", "", "abc", "123", "" }, parser.ReadFields());
218Assert.Equal(new[] { "", " ", "abc", " 123 ", "" }, parser.ReadFields());
225Assert.Equal(new[] { @"""""", @""" """, @"""abc""", @""" 123 """, "" }, parser.ReadFields());
233Assert.Equal(new[] { @"""""", @" "" "" ", @"""abc""", @" "" 123 "" ", "" }, parser.ReadFields());
241Assert.Equal(new[] { ",", ", " }, parser.ReadFields());
266Assert.Equal(new[] { "def", ",456" }, parser.ReadFields());
273Assert.Equal(new[] { "ghi", "789" }, parser.ReadFields());
291Assert.Throws<InvalidOperationException>(() => parser.ReadFields());
294Assert.Equal(new[] { "abc,123" }, parser.ReadFields());
297Assert.Equal(new[] { "def", ",456" }, parser.ReadFields());
300Assert.Equal(new[] { "ghi", ",7" }, parser.ReadFields());
303Assert.Null(parser.ReadFields());
318Assert.Throws<Exception>(() => parser.ReadFields());
322Assert.Equal(new[] { "abc", "123" }, parser.ReadFields());
326Assert.Equal(new[] { "def", "456" }, parser.ReadFields());
330Assert.Equal(new[] { "", "hi,78", "" }, parser.ReadFields());
344Assert.Equal(new[] { "", "", "" }, parser.ReadFields());
348Assert.Equal(new[] { "", "" }, parser.ReadFields());
351Assert.Null(parser.ReadFields());
354Assert.Null(parser.ReadFields());
367Assert.Throws<Exception>(() => parser.ReadFields());
383Assert.Throws<Exception>(() => parser.ReadFields());
388123" }, parser.ReadFields());
392Assert.Equal(new[] { "def", "456" }, parser.ReadFields());
396Assert.Equal(new[] { "", "hi,78", "" }, parser.ReadFields());
410Assert.Equal(new[] { "", "", "" }, parser.ReadFields());
414Assert.Equal(new[] { "", "" }, parser.ReadFields());
417Assert.Null(parser.ReadFields());
420Assert.Null(parser.ReadFields());