mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
added new helper methods to test for CardType, to get rid of the contains(CardType.XXX) everywhere, put the logic of that in one place and use the interface call
This commit is contained in:
parent
6b20d352ca
commit
5a57731968
69 changed files with 151 additions and 120 deletions
|
|
@ -209,8 +209,8 @@ public class TransformTest extends CardTestPlayerBase {
|
|||
assertGraveyardCount(playerA, "Startled Awake", 0);
|
||||
assertPermanentCount(playerA, "Persistent Nightmare", 1); // Night-side card of Startled Awake
|
||||
Permanent nightmare = getPermanent("Persistent Nightmare", playerA);
|
||||
Assert.assertTrue("Has to have creature card type", nightmare.getCardType().contains(CardType.CREATURE));
|
||||
Assert.assertFalse("Has not to have sorcery card type", nightmare.getCardType().contains(CardType.SORCERY));
|
||||
Assert.assertTrue("Has to have creature card type", nightmare.isCreature());
|
||||
Assert.assertFalse("Has not to have sorcery card type", nightmare.isSorcery());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue