// pnyx -e=documentation pncs.cmd.examples.documentation.library.ExampleLine not public static void not() { const String input = @"Line one: house Line two: cat, dog Line three: separation of economics and state "; using (Pnyx p = new Pnyx()) { p.readString(input); p.not(p2 => p2.grep("state")); p.writeStdout(); } // outputs: // Line one: house // Line two: cat, dog }
public void not() { String actual; using (Pnyx p = new Pnyx()) { p.readString(PLANETS_GODS); p.not(pn => { pn.grep("god", caseSensitive: false); }); actual = p.processToString(); } const String expected = @"Uranus,Uranus,""Father of the Titans"" "; Assert.Equal(expected, actual); }