public void TestParseGrammarNOK() { StringBuilder input = new StringBuilder(string.Empty) .Append(@"<% @TinyPG %>") .Append("ALL -> @\".*Start -> ALL;"); Program prog = new Program(PassError, new StringBuilder(string.Empty)); Grammar grammar = prog.ParseGrammar(input.ToString(), ""); Assert.IsNull(grammar); }