public void setEndRow() { TestEndRow processor = new TestEndRow(); using (Pnyx p = new Pnyx()) { p.readString("a,1\nb,2\nc,3"); p.parseCsv(); p.endRow(processor); } Assert.Equal("a|1\nb|2\nc|3\nEOF\n", processor.ToString()); }
public void setEndRow() { TestEndRow processor = new TestEndRow(); using (Pnyx p = new Pnyx()) { p.readString("a,1\nb,2\nc,3"); p.parseCsv(); p.endRow(processor); } Assert.Equal("a|1\nb|2\nc|3\nEOF\n", processor.ToString()); }