public void ExecuteBasicNew()
{
Machine machine = new Machine();
IClass cls = this.CompileClass(
"Rectangle",
new string[] { "x", "y" },
null);
machine.SetGlobalObject("Rectangle", cls);
Block block = this.compiler.CompileBlock("^Rectangle basicNew");
Assert.IsNotNull(block);
object obj = block.Execute(machine, null);
Assert.IsNotNull(obj);
Assert.IsInstanceOfType(obj, typeof(IObject));
Assert.AreEqual(cls, ((IObject)obj).Behavior);
}