Antlr4.Test.StringTemplate.TestCoreBasics.TestPassThruPartialArgs C# (CSharp) Метод

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

private TestPassThruPartialArgs ( ) : void
Результат void
        public void TestPassThruPartialArgs()
        {
            string templates =
                "a(x,y) ::= \"<b(y={99},...)>\"\n" +
                "b(x,y) ::= \"<x><y>\"\n";
            TemplateGroup group = new TemplateGroupString(templates);
            Template a = group.GetInstanceOf("a");
            a.Add("x", "x");
            a.Add("y", "y");
            string expected = "x99";
            string result = a.Render();
            Assert.AreEqual(expected, result);
        }
TestCoreBasics