AjTalk.Tests.Compilers.Javascript.CompilerTests.CompileSimpleMethodWithSet C# (CSharp) Метод

CompileSimpleMethodWithSet() приватный Метод

private CompileSimpleMethodWithSet ( ) : void
Результат 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, "};"));
        }