// pnyx -e=documentation pncs.cmd.examples.documentation.library.ExampleOutput setEndLine public static void setEndLine() { CustomEndLine processor = new CustomEndLine(); using (Pnyx p = new Pnyx()) { p.readString("a\nb\nc"); p.endLine(processor); } }
public void setEndLine() { TestEndLine processor = new TestEndLine(); using (Pnyx p = new Pnyx()) { p.readString("a\nb\nc"); p.endLine(processor); } Assert.Equal("a\nb\nc\nEOF\n", processor.ToString()); }