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

ExecuteBlock() private method

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

            object nil = machine.UndefinedObjectClass;

            Assert.IsNotNull(nil);
            Assert.IsInstanceOfType(nil, typeof(IClass));

            Block block = this.compiler.CompileBlock("nil ifNil: [GlobalName := 'foo']");

            Assert.IsNotNull(block);

            block.Execute(machine, null);

            Assert.IsNotNull(machine.GetGlobalObject("GlobalName"));
        }
SimpleCompilerTests