Antlr4.Test.StringTemplate.TestSyntaxErrors.TestValidButOutOfPlaceChar C# (CSharp) Метод

TestValidButOutOfPlaceChar() приватный Метод

private TestValidButOutOfPlaceChar ( ) : void
Результат void
        public void TestValidButOutOfPlaceChar()
        {
            string templates =
                "foo() ::= <<hi <.> mom>>\n";
            writeFile(tmpdir, "t.stg", templates);

            ITemplateErrorListener errors = new ErrorBuffer();
            TemplateGroupFile group = new TemplateGroupFile(Path.Combine(tmpdir, "t.stg"));
            group.Listener = errors;
            group.Load(); // force load
            string expected = "t.stg 1:15: doesn't look like an expression" + newline;
            string result = errors.ToString();
            Assert.AreEqual(expected, result);
        }