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

TestElseIf() private method

private TestElseIf ( ) : void
return void
        public void TestElseIf()
        {
            string template = "<if(name)>fail<elseif(id)>works<else>fail<endif>";
            Template st = new Template(template);
            st.Add("id", "2DF3DF");
            string expected = "works";
            string result = st.Render();
            Assert.AreEqual(expected, result);
        }
TestCoreBasics