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

TestTrueCondWithElse() private méthode

private TestTrueCondWithElse ( ) : void
Résultat void
        public void TestTrueCondWithElse()
        {
            string template = "<if(name)>works<else>fail<endif>";
            Template st = new Template(template);
            st.Add("name", "Ter");
            string expected = "works";
            string result = st.Render();
            Assert.AreEqual(expected, result);
        }
TestCoreBasics