Exemple #1
0
        public void ShouldKeepCardsInHandWhenTakeFromDeck()
        {
            var player = new Player();
            var card1 = new Card(CardRank.Queen,CardSuit.Heart);
            var card2 = new Card(CardRank.Two,CardSuit.Spade);

            player.TakeCard(card1);
            player.TakeCard(card2);

            Assert.AreEqual(2,player.CardsInHand);
        }
Exemple #2
0
 public virtual void TakeCard(Card card)
 {
     MyHand.Add(card);
 }
Exemple #3
0
 public override void TakeCard(Card card)
 {
     if(CanTakeAnotherCard)
         MyHand.Add(card);
 }
Exemple #4
0
 public void Add(Card card)
 {
     _cards.Add(card);
 }