This test is failing at the GetProperty(0) line:
[Test]
public void CanCreateRectangleShape()
{
var obj = _global.COREInterface.CreateInstance(SClass_ID.Shape, _global.Class_ID.Create((uint) BuiltInClassIDA.RECTANGLE_CLASS_ID, 0)) as IObject;
var node = _global.COREInterface.CreateObjectNode(obj);
Assert.IsNotNull(obj.GetProperty(0));
Assert.IsNotNull(obj);
Assert.IsNotNull(node);
Assert.AreEqual(1, _global.COREInterface.RootNode.NumberOfChildren, "Scene has one node");
_global.COREInterface.DeleteNode(node, false, false);
Assert.AreEqual(0, _global.COREInterface.RootNode.NumberOfChildren, "Scene has no nodes");
}
[Test]
public void CanCreateRectangleShape()
{
var obj = _global.COREInterface.CreateInstance(SClass_ID.Shape, _global.Class_ID.Create((uint) BuiltInClassIDA.RECTANGLE_CLASS_ID, 0)) as IObject;
var node = _global.COREInterface.CreateObjectNode(obj);
Assert.IsNotNull(obj.GetProperty(0));
Assert.IsNotNull(obj);
Assert.IsNotNull(node);
Assert.AreEqual(1, _global.COREInterface.RootNode.NumberOfChildren, "Scene has one node");
_global.COREInterface.DeleteNode(node, false, false);
Assert.AreEqual(0, _global.COREInterface.RootNode.NumberOfChildren, "Scene has no nodes");
}
Any ideas? The boxObject one, as shown in the video, passes just fine.