Beispiel #1
0
        public void Test_Default_Ace_Card_Worth()
        {
            var card      = new Card(Suit.Club, Rank.Ace);
            var cardWorth = ValueCalculator.CardWorth(card);

            Assert.Equal(1, cardWorth);
        }
Beispiel #2
0
        public void Test_Card_Worth_With_Numeral_Card()
        {
            var card      = new Card(Suit.Club, Rank.Two);
            var cardWorth = ValueCalculator.CardWorth(card);

            Assert.Equal(2, cardWorth);
        }
Beispiel #3
0
        public void Test_Card_Worth_With_Picture_Card()
        {
            var card      = new Card(Suit.Club, Rank.Queen);
            var cardWorth = ValueCalculator.CardWorth(card);

            Assert.Equal(10, cardWorth);
        }