mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 06:22:01 -08:00
[ZNR] updated booster generation and added test
This commit is contained in:
parent
18c8a8539e
commit
21ef775700
2 changed files with 44 additions and 2 deletions
|
|
@ -297,6 +297,39 @@ public class BoosterGenerationTest extends MageTestBase {
|
|||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testZendikarRising_MDFC() {
|
||||
for (int i = 0; i < 20; i++) {
|
||||
List<Card> booster = ZendikarRising.getInstance().createBooster();
|
||||
|
||||
assertEquals("Booster does not have 15 cards", 15, booster.size());
|
||||
assertTrue(
|
||||
"Booster contains cards from another set",
|
||||
booster.stream().map(Card::getExpansionSetCode).allMatch("ZNR"::equals)
|
||||
);
|
||||
assertEquals(
|
||||
"Booster must contain exactly 1 basic land", 1,
|
||||
booster.stream().filter(MageObject::isBasic).count()
|
||||
);
|
||||
assertEquals(
|
||||
"Booster must contain exactly 1 rare or mythic", 1,
|
||||
booster.stream().map(Card::getRarity).filter(rarity -> rarity == Rarity.RARE || rarity == Rarity.MYTHIC).count()
|
||||
);
|
||||
assertEquals(
|
||||
"Booster must contain exactly 3 uncommons", 3,
|
||||
booster.stream().map(Card::getRarity).filter(Rarity.UNCOMMON::equals).count()
|
||||
);
|
||||
assertEquals(
|
||||
"Booster must contain exactly 10 uncommons", 10,
|
||||
booster.stream().map(Card::getRarity).filter(Rarity.COMMON::equals).count()
|
||||
);
|
||||
assertEquals(
|
||||
"Booster must contain exactly 1 MDFC", 1,
|
||||
booster.stream().filter(ModalDoubleFacesCard.class::isInstance).count()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testKaldheim_SnowLandAndMDFC() {
|
||||
boolean foundVale = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue