Antlr4.Test.StringTemplate.TestCoreBasics.TestChainAttr C# (CSharp) Method

TestChainAttr() private method

private TestChainAttr ( ) : void
return void
        public void TestChainAttr()
        {
            string template = "<x>:<names>!";
            Template st = new Template(template);
            st.Add("names", "Ter").Add("names", "Tom").Add("x", 1);
            string expected = "1:TerTom!";
            string result = st.Render();
            Assert.AreEqual(expected, result);
        }
TestCoreBasics