Tests: fixed deck cards amount tests

This commit is contained in:
Oleg Agafonov 2018-10-09 20:53:23 +04:00
parent 74fb0acc75
commit 43655845e7

View file

@ -59,13 +59,9 @@ public class DeckValidatorTest extends MageTestBase {
}
@Test
public void testStandardValid() {
public void testStandardDeckCardsAmountValid() {
ArrayList<CardNameAmount> deck = new ArrayList<>();
deck.add(new CardNameAmount("MPS-AKH", 28, 4)); // Rhonas the Indomitable
deck.add(new CardNameAmount("Built to Smash", 4));
deck.add(new CardNameAmount("Heroic Intervention", 4));
deck.add(new CardNameAmount("Mountain", 48));
deck.add(new CardNameAmount("Mountain", 60));
DeckValidator validator = new Standard();
boolean validationSuccessful = testDeckValid(validator, deck);
@ -73,13 +69,9 @@ public class DeckValidatorTest extends MageTestBase {
}
@Test
public void testStandardNotValid() {
public void testStandardDeckCardsAmountNotValid() {
ArrayList<CardNameAmount> deck = new ArrayList<>();
deck.add(new CardNameAmount("MPS-AKH", 28, 4)); // Rhonas the Indomitable
deck.add(new CardNameAmount("Built to Smash", 4));
deck.add(new CardNameAmount("Heroic Intervention", 4));
deck.add(new CardNameAmount("Mountain", 47));
deck.add(new CardNameAmount("Mountain", 59));
ArrayList<CardNameAmount> sideboard = new ArrayList<>();
sideboard.add(new CardNameAmount("Mountain", 16));