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));
        }
Esempio n. 3
0
 public bool IsSceneDisabledAtEditorBuildSettings(string sceneName)
 {
     return(myDisabledShortNameAtBuildSettings.Contains(sceneName) ||
            myLocalCache.Scenes.DisabledSceneNamesFromBuildSettings.Contains(sceneName));
 }
Esempio n. 4
0
 public bool IsSceneExists(string sceneName)
 {
     return(myShortNameAll.Contains(sceneName) || myLocalCache.Scenes.SceneNames.Contains(sceneName));
 }