Example #1
0
        public void Should_Always_Beat_Two_Pair()
        {
            var high = new ThreeOfAKindScore(CardValue.Three);
            var low = new TwoPairScore(CardValue.Ace, CardValue.King);

            Assert.Greater(high, low);
        }
Example #2
0
        public void Low_Three_Should_Lose()
        {
            var high = new ThreeOfAKindScore(CardValue.Three);
            var low = new ThreeOfAKindScore(CardValue.Two);

            Assert.Less(low, high);
        }
Example #3
0
        public void Same_Three_Should_Tie()
        {
            var high = new ThreeOfAKindScore(CardValue.Three);
            var low = new ThreeOfAKindScore(CardValue.Three);

            Assert.AreEqual(0, high.CompareTo(low));
        }
Example #4
0
        public void High_Three_Should_Win()
        {
            var high = new ThreeOfAKindScore(CardValue.Three);
            var low = new ThreeOfAKindScore(CardValue.Two);

            Assert.Greater(high, low);
        }