Antlr4.Test.StringTemplate.TestCoreBasics.TestSeparatorInList C# (CSharp) Метод

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

private TestSeparatorInList ( ) : void
Результат void
        public void TestSeparatorInList()
        {
            TemplateGroup group = new TemplateGroup();
            group.DefineTemplate("test", "<names:{n | case <n>}; separator=\", \">", new string[] { "names" });
            Template st = group.GetInstanceOf("test");
            st.Add("names", new List<string>() { "Ter", "Tom" });
            string expected =
                "case Ter, case Tom";
            string result = st.Render();
            Assert.AreEqual(expected, result);
        }
TestCoreBasics