public void CanRetrieveAListOfCardsFromGameName() { var savedGames = new SaveGameManager(new MockSaveGameRepository()); var cards = savedGames.GetCardsForSavedGame("First Game"); Assert.AreEqual(10, cards.Count); }
public void UserDefinedGamesAllContainRealCards() { var gameManager = new SaveGameManager(new MockSaveGameRepository()); var gameList = gameManager.AvailableBuiltInGamesNames(); foreach (var gameName in gameList) { var game = gameManager.GetCardsForSavedGame(gameName); foreach (var card in game) { Assert.IsNotNull(card, "Unknown card found in game " + gameName); } } }