Пример #1
0
        public void CompareHands()
        {
            // validate draw/equal cards
            Assert.AreEqual(DeckService.CompareCard(new string[] { "AH", "KH", "QH", "JH", "10H" }, new string[] { "10D", "JD", "QD", "KD", "AD" }, Deck.Hand.RoyalFlush), Deck.CompareHand.Equal);

            // validate higher card
            Assert.AreEqual(DeckService.CompareCard(new string[] { "AH", "KH", "QH", "JH", "10H" }, new string[] { "10D", "JD", "QD", "KD", "9D" }, Deck.Hand.RoyalFlush), Deck.CompareHand.Higher);

            // validate lower card
            Assert.AreEqual(DeckService.CompareCard(new string[] { "9h", "Kh", "Qh", "Jh", "10h" }, new string[] { "10D", "JD", "QD", "KD", "AD" }, Deck.Hand.RoyalFlush), Deck.CompareHand.Lower);
        }