AjTalk.Tests.Compiler.SimpleCompilerTests.CompileMultiCommandMethodWithLocal C# (CSharp) Method

CompileMultiCommandMethodWithLocal() private method

private CompileMultiCommandMethodWithLocal ( ) : void
return void
        public void CompileMultiCommandMethodWithLocal()
        {
            IClass cls = this.CompileClass(
                "Rectangle",
                new string[] { "x", "y" },
                new string[] { "side: newSide | temp | temp := x. x := temp. y := temp" });

            Assert.IsNotNull(cls);

            Assert.IsNotNull(cls.GetInstanceMethod("side:"));
        }
SimpleCompilerTests