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

TestPropWithNoAttr() private méthode

private TestPropWithNoAttr ( ) : void
Résultat void
        public void TestPropWithNoAttr()
        {
            string template = "<foo.a>: <ick>";
            Template st = new Template(template);
            st.Add("foo", new Dictionary<string, string>() { { "a", "b" } });
            string expected = "b: ";
            string result = st.Render();
            Assert.AreEqual(expected, result);
        }
TestCoreBasics