Пример #1
0
 @Test
 public void should_be_unequal_given_different_suit_but_same_face_value_card() throws Exception {
   // given
   final Card cardA3 = card(A, 3);
   final Card cardB3 = card(B, 3);
   // when
   // then
   assertThat(cardA3.equals(cardB3), is(false));
 }
Пример #2
0
 @Test
 public void should_be_equal_given_same_suit_and_face_value_card() throws Exception {
   // given
   final Card cardA3 = card(A, 3);
   final Card anotherCardA3 = card(A, 3);
   // when
   // then
   assertThat(cardA3.equals(anotherCardA3), is(true));
 }