Esempio n. 1
0
 @Test
 public void testFoundSet() {
   LinkedList<ICard> liste = new LinkedList<ICard>();
   liste.addAll(field.getAllCardsInGame());
   for (int index = 0; index < (liste.size() - 2); index++) {
     this.field.foundSet(liste.get(index), liste.get((index + 1)), liste.get(index + 2));
   }
   if (!this.field.getAllCardsInGame().isEmpty()) {
     fail("found a set methode is not working as the way we wish :/");
   }
 }
Esempio n. 2
0
 @Test
 public void testGetPackForControler() {
   if (field.getAllCardsInGame().size() != 81) {
     fail("feld größe stimmt nicht");
   }
 }