AjTalk.Tests.Compilers.Javascript.CompilerTests.CompileSimpleMethodWithSet C# (CSharp) Méthode

CompileSimpleMethodWithSet() private méthode

private CompileSimpleMethodWithSet ( ) : void
Résultat void
        public void CompileSimpleMethodWithSet()
        {
            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, "MyClass.prototype['with_with_'] = function(a, b)"));
            Assert.IsTrue(ContainsLine(output, "{"));
            Assert.IsTrue(ContainsLine(output, "a = b;"));
            Assert.IsTrue(ContainsLine(output, "return self;"));
            Assert.IsTrue(ContainsLine(output, "};"));
        }