コード例 #1
0
        public void Test_HandWorth_Calculator_With_Empty_Hand()
        {
            var hand = new List <Card> {
            };

            Assert.Equal(0, ValueCalculator.HandWorth(hand));
        }
コード例 #2
0
        public void Test_HandWorth_Calculator_With_Hand_And_Ace_Change()
        {
            var hand = new List <Card> {
                new Card(Suit.Club, Rank.Eight), new Card(Suit.Diamond, Rank.Ace)
            };

            Assert.Equal(19, ValueCalculator.HandWorth(hand));
        }