Beispiel #1
0
        // 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);
            }
        }
Beispiel #2
0
        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());
        }