Ejemplo n.º 1
0
        public void TestSuperInclude()
        {
            string           template    = "<super.foo()>";
            CompiledTemplate code        = new TemplateCompiler(new TemplateGroup()).Compile(template);
            string           asmExpected =
                "super_new 0 0, write";

            code.Dump();
            string asmResult = code.GetInstructions();

            Assert.AreEqual(asmExpected, asmResult);
            string stringsExpected = "[foo]";
            string stringsResult   = code.strings.ToListString();

            Assert.AreEqual(stringsExpected, stringsResult);
        }