AjTalk.Tests.Compiler.VmCompilerTests.CompileSetMethod C# (CSharp) 메소드

CompileSetMethod() 개인적인 메소드

private CompileSetMethod ( ) : void
리턴 void
        public void CompileSetMethod()
        {
            Machine machine = new Machine();
            IClass cls = machine.CreateClass("Rectangle");
            cls.DefineInstanceVariable("x");
            var method = this.compiler.CompileInstanceMethod("x: newX x := newX", cls);
            Assert.IsNotNull(method);
            Assert.IsNotNull(method.ByteCodes);
        }