public void OldNewThingBlogExampleE()
        {
            // http://blogs.msdn.com/b/oldnewthing/archive/2010/09/17/10063629.aspx (comments)
            AssertSequenceEqual(new[] { "foo" + Quote + Quote + "bar" }, ConsoleCommandLineLexer.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 }, ConsoleCommandLineLexer.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 + "b c", "d", "e" },
                         ConsoleCommandLineLexer.Lex("a" + Backslash + Backslash + Backslash + Backslash + Quote + "b c" + Quote + " d e"));
 }
 public void EscapedQuotesG()
 {
     AssertSequenceEqual(new[] { Quote + Quote + Quote + Quote + Quote + Quote + "a b" }, ConsoleCommandLineLexer.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" }, ConsoleCommandLineLexer.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" }, ConsoleCommandLineLexer.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 }, ConsoleCommandLineLexer.Lex("a " + Quote + Quote + " " + Quote + Quote + Quote + Quote));
 }