コード例 #1
0
        public void CanAddTwoHoleCards()
        {
            var firstHoleCard  = texasHoldEmBuilder.CreateNewCard(CardValue.Ace, CardSuit.Club);
            var secondHoleCard = texasHoldEmBuilder.CreateNewCard(CardValue.Ace, CardSuit.Diamond);

            player.AddHoleCards(firstHoleCard, secondHoleCard);
            CollectionAssert.Contains(player.HoleCards, firstHoleCard);
            CollectionAssert.Contains(player.HoleCards, secondHoleCard);
        }
コード例 #2
0
ファイル: CardTest.cs プロジェクト: Olorin71/RetreatCode
        public void CardFourDiamondAsStringReturnFourOfDiamonds()
        {
            ICard card = texasHoldEmBuilder.CreateNewCard(CardValue.Four, CardSuit.Diamond);

            Assert.AreEqual("Four of Diamonds", card.ToString());
        }