private void ShuffleCardsTestInternal(CardsPack cardsPack)
        {
            var cardsCount = cardsPack.Count();

            cardsPack.Shuffle();
            Assert.Equal(cardsCount, cardsPack.Count());
        }
Example #2
0
        /// <summary>
        /// Запускает игру
        /// </summary>
        public void Start()
        {
            if (IsStarted)
            {
                throw new TrueFalseGameException("Игра уже запущена");
            }

            CardsPack.Shuffle();
            DealCards();
            NextRound();
            SetNextMover();
            IsStarted = true;
        }