AjTalk.Tests.Compiler.ParserTests.ExecuteTrueIfFalse C# (CSharp) Method

ExecuteTrueIfFalse() private method

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

            Parser compiler = new Parser("true ifFalse: [GlobalName := 'foo']");
            Block block = compiler.CompileBlock();

            Assert.IsNotNull(block);

            block.Execute(machine, null);

            Assert.IsNull(machine.GetGlobalObject("GlobalName"));
        }
ParserTests