public void PlayerAddMaxCardThenResetThenAddTooMany() { Deck deck = new Deck(); bool hasThrown = false; var player = new Player(true); player.GiveDeck(deck); deck.SetGameMode(GameMode.AllAssets); var cards = deck.Cards.Take(8); try { foreach (var curCard in cards) { player.GiveCard(curCard); } player.ResetCards(); player.GiveDeck(deck); Assert.AreEqual(0, player.Hand.Count); cards = deck.Cards.Take(10); foreach (var curCard in cards) { player.GiveCard(curCard); } } catch (Exception) { hasThrown = true; } Assert.AreEqual(true, hasThrown); }