Ejemplo n.º 1
0
        public void Should_Beat_HighCard()
        {
            var high = new PairScore(CardValue.Three);
            var low = new HighCardScore(CardValue.Ace);

            Assert.Greater(high, low, "Pair should beat high card");
        }
Ejemplo n.º 2
0
        public void TestLess()
        {
            HighCardScore two = new HighCardScore(CardValue.Two);
            HighCardScore three = new HighCardScore(CardValue.Three);

            Assert.AreEqual(-1, two.CompareTo(three));
        }
Ejemplo n.º 3
0
        public void TestTie()
        {
            HighCardScore two = new HighCardScore(CardValue.Two);
            HighCardScore anotherTwo = new HighCardScore(CardValue.Two);

            Assert.AreEqual(0, two.CompareTo(anotherTwo));
        }
Ejemplo n.º 4
0
        public void TestGreater()
        {
            HighCardScore two = new HighCardScore(CardValue.Two);
            HighCardScore three = new HighCardScore(CardValue.Three);

            Assert.AreEqual(1, three.CompareTo(two));
        }