AjTalk.Tests.Compilers.Javascript.VirtualMachineCompilerTests.CompileSimpleAddMethod C# (CSharp) Method

CompileSimpleAddMethod() private method

private CompileSimpleAddMethod ( ) : void
return void
        public void CompileSimpleAddMethod()
        {
            MethodModel method = ParseMethod("with: a with: b ^a+b");
            this.compiler.CompileMethod(method);
            this.writer.Close();
            string output = this.writer.ToString();
            Assert.IsTrue(ContainsLine(output, "Smalltalk.MyClass.defineMethod('with:with:', function(a, b)"));
            Assert.IsTrue(ContainsLine(output, "{"));
            Assert.IsTrue(ContainsLine(output, "return a['+'](b);"));
            Assert.IsTrue(ContainsLine(output, "});"));
        }