Antlr4.Test.StringTemplate.TestGroupSyntax.TestSingleTemplateWithArgs C# (CSharp) Method

TestSingleTemplateWithArgs() private method

private TestSingleTemplateWithArgs ( ) : void
return void
        public void TestSingleTemplateWithArgs()
        {
            string templates =
                "t(a,b) ::= \"[<a>]\"" + Environment.NewLine;

            writeFile(tmpdir, "t.stg", templates);
            TemplateGroup group = new TemplateGroupFile(Path.Combine(tmpdir, "t.stg"));
            string expected =
                "t(a,b) ::= <<" + Environment.NewLine +
                "[<a>]" + Environment.NewLine +
                ">>" + Environment.NewLine;
            string result = group.Show();
            Assert.AreEqual(expected, result);
        }