AjTalk.Tests.Compilers.Javascript.CompilerTests.CompileSuperMethod C# (CSharp) Method

CompileSuperMethod() private method

private CompileSuperMethod ( ) : void
return void
        public void CompileSuperMethod()
        {
            MethodModel method = ParseMethod("with: a ^super with: a");
            this.compiler.CompileMethod(method);
            this.writer.Close();
            string output = this.writer.ToString();
            Assert.IsTrue(ContainsLine(output, "MyClass.prototype['with_'] = function(a)"));
            Assert.IsTrue(ContainsLine(output, "{"));
            Assert.IsTrue(ContainsLine(output, "return sendSuper(self, MyClass, 'with_', [a]);"));
            Assert.IsFalse(ContainsLine(output, "return self;"));
            Assert.IsTrue(ContainsLine(output, "};"));
        }