public void asCsv() { String actual; using (Pnyx p = new Pnyx()) { p.asCsv(pn => pn.readString(PLANETS_GODS_FORMAT_ISSUES), strict: false); actual = p.processToString(); } Assert.Equal(PLANETS_GODS, actual); }
// pnyx -e=documentation pncs.cmd.examples.documentation.library.ExampleLine embeddedNewlineAsCsv public static void embeddedNewlineAsCsv() { const String input = "a,\"Long\nText\n\""; using (Pnyx p = new Pnyx()) { p.asCsv(p2 => p.readString(input)); // CsvStreamToRowProcessor p.selectColumns(2, 1); p.writeStdout(); } // outputs: // "Long\nText\n",a }