private void ShuffleCardsTestInternal(CardsPack cardsPack) { var cardsCount = cardsPack.Count(); cardsPack.Shuffle(); Assert.Equal(cardsCount, cardsPack.Count()); }
/// <summary> /// Запускает игру /// </summary> public void Start() { if (IsStarted) { throw new TrueFalseGameException("Игра уже запущена"); } CardsPack.Shuffle(); DealCards(); NextRound(); SetNextMover(); IsStarted = true; }