public void AfterAddingThenRemovingWhileLocked_IsNotContained() { var type = typeof(Node <SpriteRenderer>); var family = Substitute.For <IFamily>(); _container.Lock(); _container.Add(type, family); _container.Remove(type); Assert.IsFalse(_container.Contains(type)); }
public void ReleaseNodes <T>(INodeList <T> nodes) { var type = typeof(T); if (!_families.Contains(type)) { return; } _families.Remove(type); }