public void cards_are_different_if_their_suit_is_different() { var card1 = new Card(Suit.Spades, 2); var card2 = new Card(Suit.Hearts, 2); card1.ShouldNotEqual(card2); }
public void cards_are_different_if_their_value_is_different() { var card1 = new Card(Suit.Spades, 2); var card2 = new Card(Suit.Spades, 3); card1.ShouldNotEqual(card2); card1.GetHashCode().ShouldNotEqual(card2.GetHashCode()); }