示例#1
0
        public void TestLess()
        {
            HighCardScore two = new HighCardScore(CardValue.Two);
            HighCardScore three = new HighCardScore(CardValue.Three);

            Assert.AreEqual(-1, two.CompareTo(three));
        }
示例#2
0
        public void TestTie()
        {
            HighCardScore two = new HighCardScore(CardValue.Two);
            HighCardScore anotherTwo = new HighCardScore(CardValue.Two);

            Assert.AreEqual(0, two.CompareTo(anotherTwo));
        }
示例#3
0
        public void TestGreater()
        {
            HighCardScore two = new HighCardScore(CardValue.Two);
            HighCardScore three = new HighCardScore(CardValue.Three);

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