AjTalk.Tests.Compiler.SimpleCompilerTests.ExecuteTrueIfTrueIfFalse C# (CSharp) 메소드

ExecuteTrueIfTrueIfFalse() 개인적인 메소드

private ExecuteTrueIfTrueIfFalse ( ) : void
리턴 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