Пример #1
0
        public void TestGetCategory1_HighCard()
        {
            ICard[] cards = new ICard[5]
            {
                new Card(CardRank.Queen, CardSuit.Diamonds),
                new Card(CardRank.King, CardSuit.Hearts),
                new Card(CardRank.Two, CardSuit.Hearts),
                new Card(CardRank.Eight, CardSuit.Spades),
                new Card(CardRank.Nine, CardSuit.Clubs)
            };

            IHand hand = new Hand(cards);

            HandCategory category = handEvaluator.GetCategory(hand);

            Assert.AreEqual(HandCategory.HighCard, category, "High card is not identified correctly.");
        }