public void TestRemove() { SingleRelationshipDef relDef = new SingleRelationshipDef("rel", typeof(MyRelatedBo), new RelKeyDef(), true, DeleteParentAction.Prevent); RelationshipDefColInheritor col = new RelationshipDefColInheritor(); col.CallRemove(relDef); col.Add(relDef); Assert.AreEqual(1, col.Count); col.CallRemove(relDef); Assert.AreEqual(0, col.Count); }