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

TestMapAcrossDictionaryUsesKeys() private method

private TestMapAcrossDictionaryUsesKeys ( ) : void
return void
        public void TestMapAcrossDictionaryUsesKeys()
        {
            string template = "<foo:{f | <f>}>"; // checks field and method getter
            Template st = new Template(template);
            st.Add("foo", new SortedDictionary<string, string>() { { "a", "b" }, { "c", "d" } });
            string expected = "ac";
            string result = st.Render();
            Assert.AreEqual(expected, result);
        }
TestCoreBasics