Antlr4.Test.StringTemplate.TestCoreBasics.TestOr C# (CSharp) 메소드

TestOr() 개인적인 메소드

private TestOr ( ) : void
리턴 void
        public void TestOr()
        {
            string template = "<if(name||notThere)>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