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

CompileAndExecuteTwoSimpleCommand() 개인적인 메소드

private CompileAndExecuteTwoSimpleCommand ( ) : void
리턴 void
        public void CompileAndExecuteTwoSimpleCommand()
        {
            Block block = this.compiler.CompileBlock("a := 1. b := 2");
            Machine machine = new Machine();
            block.Execute(machine, null);
            Assert.AreEqual(1, machine.GetGlobalObject("a"));
            Assert.AreEqual(2, machine.GetGlobalObject("b"));
        }