AjTalk.Tests.Compiler.ParserTests.CompileMultiCommandMethodWithLocal C# (CSharp) Méthode

CompileMultiCommandMethodWithLocal() private méthode

private CompileMultiCommandMethodWithLocal ( ) : void
Résultat void
        public void CompileMultiCommandMethodWithLocal()
        {
            IClass cls = 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:"));
        }
ParserTests