예제 #1
0
        public ImperativeAstVistorTest()
        {
            nameMap = new Dictionary <string, string>()
            {
                { "foo", "bar" },
                { "a", "a1" },
                { "b", "b1" },
                { "c", "c1" }
            };

            replacer = new TestImperativeAstReplacer((variable) =>
            {
                return(nameMap.ContainsKey(variable) ? nameMap[variable] : variable);
            });
        }
        public ImperativeAstVistorTest()
        {
            nameMap = new Dictionary<string, string>()
            {
                {"foo", "bar" },
                {"a", "a1" },
                {"b", "b1" },
                {"c", "c1" }
            };

            replacer = new TestImperativeAstReplacer((variable) =>
            {
                return nameMap.ContainsKey(variable) ? nameMap[variable] : variable;
            });
        }