public void TestCapture() { IEntity entity = new Entity(null, Vector2.Zero, Vector2.Zero, false); var captureComponent = new CaptureComponent(entity); entity.Update(); Assert.IsTrue(entity.HasComponent <CaptureComponent>()); Assert.AreSame(captureComponent, entity.GetComponent <CaptureComponent>()); Assert.AreSame(entity, entity.GetComponent <CaptureComponent>().Parent); }
public ClusterComponentAttributes(IGH_Component component) : base(component) { MyComponent = (CaptureComponent)component; }