public void OldNewThingBlogExampleE()
        {
            // http://blogs.msdn.com/b/oldnewthing/archive/2010/09/17/10063629.aspx (comments)
            AssertSequenceEqual(new[] { "foo" + Quote + Quote + "bar" }, NitoCommandLineLexer.Lex("foo" + Quote + Quote + Quote + Quote + Quote + Quote + "bar"));

            // Note: the last blog example (which would be F) of 12 dquotes going to 4 is a historical anomaly; 12 go to 5 since 2005.
        }
 public void BlogExampleG()
 {
     // http://nitoprograms.blogspot.com/2011/06/option-parsing-lexing.html
     AssertSequenceEqual(new[] { "a " + Backslash + Backslash }, NitoCommandLineLexer.Lex(Quote + "a " + Backslash + Backslash + Quote));
 }
 public void MsdnExampleD()
 {
     // http://msdn.microsoft.com/en-us/library/17w5ykft(v=VS.85).aspx
     AssertSequenceEqual(new[] { "a" + Backslash + Backslash + Backslash + Backslash + "b c", "d", "e" },
                         NitoCommandLineLexer.Lex("a" + Backslash + Backslash + Backslash + Backslash + Quote + "b c" + Quote + " d e"));
 }
 public void EscapedQuotesG()
 {
     AssertSequenceEqual(new[] { Quote + Quote + Backslash + Quote + Quote + Quote + "a", "b" }, NitoCommandLineLexer.Lex(Quote + Quote + Quote + Quote + Quote + Backslash + Quote + Quote + Quote + Quote + Quote + Quote + Quote + "a b" + Quote));
 }
 public void TwelveQuotes()
 {
     AssertSequenceEqual(new[] { "foo" + Quote + Quote + Quote + Quote + Quote + "bar" }, NitoCommandLineLexer.Lex("foo" + Quote + Quote + Quote + Quote + Quote + Quote + Quote + Quote + Quote + Quote + Quote + Quote + "bar"));
 }
 public void OldNewThingBlogExampleD()
 {
     // http://blogs.msdn.com/b/oldnewthing/archive/2010/09/17/10063629.aspx (comments)
     AssertSequenceEqual(new[] { "foox" + Quote + "bar" }, NitoCommandLineLexer.Lex("foo" + Quote + "x" + Quote + Quote + "bar"));
 }
 public void BlogExampleJ()
 {
     // http://nitoprograms.blogspot.com/2011/06/option-parsing-lexing.html
     AssertSequenceEqual(new[] { "a", string.Empty, Quote }, NitoCommandLineLexer.Lex("a " + Quote + Quote + " " + Quote + Quote + Quote + Quote));
 }