AjTalk.Tests.Compiler.VmCompilerTests.CompileAndExecuteTwoSimpleCommand C# (CSharp) Méthode

CompileAndExecuteTwoSimpleCommand() private méthode

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