コード例 #1
0
        public void CreatDealer_DealACard_VerifyCardIsNotNull()
        {
            // Arrange
            var cardDeck = new CardDeck();
            var dealer   = new SolitaireDealer(cardDeck);

            // Act
            var card = dealer.DealACard();

            // Assert
            Assert.IsNotNull(card);
        }
コード例 #2
0
        public void CreatDealer_DealACard_VerifyCardDeckSize()
        {
            // Arrange
            CardDeck cardDeck = new CardDeck();
            var      dealer   = new SolitaireDealer(cardDeck);

            // Act
            dealer.DealACard();

            // Assert
            Assert.AreEqual(51, cardDeck.Cards.Count);
        }