Exemple #1
0
        public void CompareHandsTest(List <string> hand1, List <string> hand2)
        {
            var cardValues    = new CardValues();
            var handData      = new HandCalculator(cardValues, new HandValues(cardValues));
            var hand1WithData = handData.Calculate(hand1);
            var hand2WithData = handData.Calculate(hand2);

            Assert.True(hand1WithData.Value > hand2WithData.Value);
        }
        public void CanCalculateCorrectValueOfHand(List <Card> hand, int expected)
        {
            var actual = HandCalculator.Calculate(hand);

            Assert.Equal(expected, actual);
        }