Example #1
0
        public void CanAddCardToBottomOfDeck()
        {
            // arrange
            var deck = new PlayingCardDeck();
            var expectedNewQueueDeckCount = 53;
            var card = new PlayingCard {
                Face = Face.Ace, Suit = Suit.Spades
            };

            // act
            Deal.AddCardToBottom(deck, card);

            // assert
            Assert.Equal(Suit.Spades, deck.Cards[0].Suit);
            Assert.Equal(Face.Ace, deck.Cards[0].Face);
            Assert.Equal(expectedNewQueueDeckCount, deck.Cards.Count);
        }