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

TestSTProp() private method

private TestSTProp ( ) : void
return void
        public void TestSTProp()
        {
            string template = "<t.x>"; // get x attr of template t
            Template st = new Template(template);
            Template t = new Template("<x>");
            t.Add("x", "Ter");
            st.Add("t", t);
            string expected = "Ter";
            string result = st.Render();
            Assert.AreEqual(expected, result);
        }
TestCoreBasics