AjTalk.Tests.Compiler.VmCompilerTests.RunMultiCommandMethodWithLocal C# (CSharp) Method

RunMultiCommandMethodWithLocal() private method

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

            Assert.IsNotNull(cls);

            IObject obj = (IObject)cls.NewObject();

            cls.GetInstanceMethod("side:").Execute(null, obj, new object[] { 10 });

            Assert.AreEqual(10, obj[0]);
            Assert.AreEqual(10, obj[1]);
        }