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, "Smalltalk.MyClass.defineMethod('with:', function(a)"));
Assert.IsTrue(ContainsLine(output, "{"));
Assert.IsTrue(ContainsLine(output, "return sendSuper(self, MyClass, 'with_', [a]);"));
Assert.IsTrue(ContainsLine(output, "});"));
}