Antlr4.Test.StringTemplate.TestCoreBasics.TestSTProp C# (CSharp) Méthode

TestSTProp() private méthode

private TestSTProp ( ) : void
Résultat 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