public void RemoveItem_TheSameItemWasAddedTwice_CollectionStillContainsItem() { CountingSet <object> coll = new CountingSet <object>(); object item = new object(); coll.Add(item); coll.Add(item); coll.Remove(item); Assert.IsTrue(coll.Contains(item)); }
public void RemoveItemTwice_TheSameItemWasAddedTwice_CollectionDoesntContainItem() { CountingSet <object> coll = new CountingSet <object>(); object item = new object(); coll.Add(item); coll.Add(item); coll.Remove(item); coll.Remove(item); Assert.IsFalse(coll.Contains(item)); }
public bool IsSceneDisabledAtEditorBuildSettings(string sceneName) { return(myDisabledShortNameAtBuildSettings.Contains(sceneName) || myLocalCache.Scenes.DisabledSceneNamesFromBuildSettings.Contains(sceneName)); }
public bool IsSceneExists(string sceneName) { return(myShortNameAll.Contains(sceneName) || myLocalCache.Scenes.SceneNames.Contains(sceneName)); }