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

CompileAndExecuteTwoSimpleCommand() private method

private CompileAndExecuteTwoSimpleCommand ( ) : void
return 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"));
        }