public void DealCard_FillsHand() { Player testPlayer = new Poker.Player(); Card cardOne = new Card(1, 1); testPlayer.DealCard(cardOne); Assert.Contains(cardOne, testPlayer.hand); }
public void SwitchCard_SetRightCard() { Player testPlayer = new Poker.Player(); Card cardOne = new Card(1, 1); Card cardTwo = new Card(2, 0); testPlayer.DealCard(cardOne); testPlayer.SwitchCard(cardTwo, 0); Assert.AreEqual(cardTwo, testPlayer.hand[0]); CollectionAssert.DoesNotContain(testPlayer.hand, cardOne); }