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

CompileMethods() private method

private CompileMethods ( ) : void
return void
        public void CompileMethods()
        {
            IClass cls = this.CompileClass(
                "Rectangle",
                new string[] { "x", "y" },
                new string[] { "x ^x", "x: newX x := newX", "y ^y", "y: newY y := newY" });

            Assert.IsNotNull(cls);

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