Antlr4.Test.StringTemplate.TestGroupSyntax.TestDefaultValueBehaviorEmptyList C# (CSharp) Метод

TestDefaultValueBehaviorEmptyList() приватный Метод

private TestDefaultValueBehaviorEmptyList ( ) : void
Результат void
        public void TestDefaultValueBehaviorEmptyList()
        {
            string templates =
                "t(a=[]) ::= <<\n" +
                "<a><if(a)>+<else>-<endif>\n" +
                ">>\n";

            writeFile(tmpdir, "t.stg", templates);
            TemplateGroup group = new TemplateGroupFile(tmpdir + Path.DirectorySeparatorChar + "t.stg");
            Template st = group.GetInstanceOf("t");
            string expected = "-";
            string result = st.Render();
            Assert.AreEqual(expected, result);
        }