Пример #1
0
        public void Test_TakeRandomCard_ReturnsACardAndRemovesItFromTheDeck()
        {
            //Arrange
            Mock<DeckGenerator> mockGenerateDeck = new Mock<DeckGenerator>();
            Deck testDeck = new Deck(mockGenerateDeck.Object.GenerateDeck());
            int expectedNumber = 51;

            //Act
            Card returnedCard = testDeck.TakeRandomCard();

            //Assert
            Assert.IsInstanceOfType(returnedCard, typeof(Card));
        }