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

TestElseIf2() private method

private TestElseIf2 ( ) : void
return void
        public void TestElseIf2()
        {
            string template =
                "<if(x)>fail1<elseif(y)>fail2<elseif(z)>works<else>fail3<endif>";
            Template st = new Template(template);
            st.Add("z", "blort");
            string expected = "works";
            string result = st.Render();
            Assert.AreEqual(expected, result);
        }
TestCoreBasics