public void OnDestroyInvokedWhenEntityDestroyed() { _defaultEntity.OnDestroyEntity += entity => _didDispatch += 1; _defaultEntity.Destroy(); Assert.AreEqual(1, _didDispatch); }
public void ValidateThatDestroyedEntityIsRemovedFromGroup() { SetupGroupEntities(); var g = _defaultContext.GetGroup(matcherAB); eAB1.Destroy(); Assert.IsFalse(g.GetEntities().Contains(eAB1)); }