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"); }
public void TestLess() { HighCardScore two = new HighCardScore(CardValue.Two); HighCardScore three = new HighCardScore(CardValue.Three); Assert.AreEqual(-1, two.CompareTo(three)); }
public void TestTie() { HighCardScore two = new HighCardScore(CardValue.Two); HighCardScore anotherTwo = new HighCardScore(CardValue.Two); Assert.AreEqual(0, two.CompareTo(anotherTwo)); }
public void TestGreater() { HighCardScore two = new HighCardScore(CardValue.Two); HighCardScore three = new HighCardScore(CardValue.Three); Assert.AreEqual(1, three.CompareTo(two)); }