Exemplo n.º 1
0
        public void ShufflingTwiceShouldProduceDifferentCardSequences()
        {
            IPackOfCardsCreator packOfCardsCreator = new PackOfCardsCreator();
            IPackOfCards        packOfCards        = packOfCardsCreator.Create();

            packOfCards.Shuffle();
            IList <ICard> shuffle1Sequence = packOfCards.ToList();

            packOfCards.Shuffle();
            IList <ICard> shuffle2Sequence = packOfCards.ToList();

            Assert.AreNotSame(shuffle1Sequence, shuffle2Sequence);
        }