AjTalk.Tests.Compiler.VmCompilerTests.ExecuteBlock C# (CSharp) Метод

ExecuteBlock() приватный Метод

private ExecuteBlock ( ) : void
Результат 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"));
        }