Beispiel #1
0
        public void UtilitiesTest_Shuffle_Test()
        {
            int  nDecks = 8;
            Shoe shoe   = new Shoe(nDecks);

            Card[] cards = shoe.Cards;

            DeckTest.CheckPresenceOfAllCardsInOrder(cards, nDecks);
            string originalAllCardNames = shoe.DisplayAllCardsNames();

            Utilities.Shuffle(cards);

            string afterShuffleAllCardNames = shoe.DisplayAllCardsNames();

            Assert.AreEqual(52 * nDecks, cards.Length);
            Assert.AreNotEqual(originalAllCardNames, afterShuffleAllCardNames);
        }