コード例 #1
0
 public void JackDiamonds_Is_Less_Than_KingSpades()
 {
     DefaultCardComparer comparer = new DefaultCardComparer();
     Card kingSpades = new Card("4", 4, Suits.Clubs);
     Card jackDiamonds = new Card("2", 2, Suits.Hearts);
     Assert.Equal(-1, comparer.Compare(jackDiamonds, kingSpades));
 }
コード例 #2
0
 public void FourClubs_Is_Greater_Than_TwoHearts()
 {
     DefaultCardComparer comparer = new DefaultCardComparer();
     Card fourClubs = new Card("4", 4, Suits.Clubs);
     Card twoHearts = new Card("2", 2, Suits.Hearts);
     Assert.Equal(1, comparer.Compare(fourClubs, twoHearts));
 }