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

TestSeparatorInPrimitiveArray() private method

private TestSeparatorInPrimitiveArray ( ) : void
return void
        public void TestSeparatorInPrimitiveArray()
        {
            TemplateGroup group = new TemplateGroup();
            group.DefineTemplate("test", "<names:{n | case <n>}; separator=\", \">", new string[] { "names" });
            Template st = group.GetInstanceOf("test");
            st.Add("names", new int[] { 0, 1 });
            string expected =
                "case 0, case 1";
            string result = st.Render();
            Assert.AreEqual(expected, result);
        }
TestCoreBasics