Antlr4.Test.StringTemplate.TestCompiler.TestSuperIncludeWithNamedArgs C# (CSharp) Метод

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

private TestSuperIncludeWithNamedArgs ( ) : void
Результат void
        public void TestSuperIncludeWithNamedArgs()
        {
            string template = "<super.foo(x=a,y={b})>";
            CompiledTemplate code = new TemplateCompiler(new TemplateGroup()).Compile(template);
            string asmExpected =
                "args, load_attr 0, store_arg 1, new 2 0, store_arg 3, super_new_box_args 4, write";
            string asmResult = code.GetInstructions();
            Assert.AreEqual(asmExpected, asmResult);
            string stringsExpected = "[a, x, _sub1, y, foo]";
            string stringsResult = code.strings.ToListString();
            Assert.AreEqual(stringsExpected, stringsResult);
        }