Exemplo n.º 1
0
        public void DeleteGame()
        {
            Game g = SetupGameStoreWithSingleGame();

            GameStore.DeleteGame(g.Id);

            Assert.AreEqual(0, GameStore.Instance.Games.Keys.Count);
        }
Exemplo n.º 2
0
        public void DeleteGameWithMultipleOtherGames()
        {
            Game g  = SetupGameStoreWithSingleGame();
            Game g2 = SetupGameStoreWithSingleGame();
            Game g3 = SetupGameStoreWithSingleGame();

            GameStore.DeleteGame(g.Id);

            Assert.IsFalse(GameStore.Instance.Games.ContainsValue(g));
            Assert.IsTrue(GameStore.Instance.Games.ContainsValue(g2));
            Assert.IsTrue(GameStore.Instance.Games.ContainsValue(g3));
        }