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

ExecuteTrueIfTrueIfFalse() private method

private ExecuteTrueIfTrueIfFalse ( ) : void
return void
        public void ExecuteTrueIfTrueIfFalse()
        {
            Machine machine = new Machine();

            Block block = this.compiler.CompileBlock("true ifTrue: [GlobalName := 'bar'] ifFalse: [GlobalName := 'foo']");

            Assert.IsNotNull(block);

            block.Execute(machine, null);

            Assert.AreEqual("bar", machine.GetGlobalObject("GlobalName"));
        }
SimpleCompilerTests