mirror of
https://github.com/correl/mage.git
synced 2024-11-25 03:00:11 +00:00
Test for Unlicensed Hearse (#9094)
This commit is contained in:
parent
b954999081
commit
048fcba222
1 changed files with 68 additions and 0 deletions
|
@ -0,0 +1,68 @@
|
|||
package org.mage.test.cards.single.snc;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
* {@link mage.cards.u.UnlicensedHearse Unlicensed Hearse}
|
||||
* {2}
|
||||
* Artifact - Vehicle
|
||||
* {T}: Exile up to two target cards from a single graveyard.
|
||||
* Unlicensed Hearse's power and toughness are each equal to the
|
||||
* number of cards exiled with it.
|
||||
* Crew 2
|
||||
*
|
||||
* @author DeepCrimson
|
||||
*/
|
||||
public class UnlicensedHearseTest extends CardTestPlayerBase {
|
||||
|
||||
/**
|
||||
* Give Player A one Unlicensed Hearse on the battlefield and give
|
||||
* Player B two cards in their graveyard.
|
||||
*/
|
||||
@Before
|
||||
public void createHearseAndFillGraveyard() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Unlicensed Hearse");
|
||||
addCard(Zone.GRAVEYARD, playerB, "Grizzly Bears");
|
||||
addCard(Zone.GRAVEYARD, playerB, "Forest Bear");
|
||||
}
|
||||
|
||||
/**
|
||||
* Test that exiling a single card with Unlicensed Hearse results
|
||||
* in it being a 1/1.
|
||||
*/
|
||||
@Test
|
||||
public void testExileOneCardFromGraveyard() {
|
||||
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA,
|
||||
"{T}: Exile up to two target cards from a single graveyard.",
|
||||
"Grizzly Bears");
|
||||
|
||||
setStrictChooseMode(true);
|
||||
execute();
|
||||
assertAllCommandsUsed();
|
||||
|
||||
assertGraveyardCount(playerB, 1);
|
||||
assertPowerToughness(playerA, "Unlicensed Hearse", 1, 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test that exiling two cards with Unlicensed Hearse from one
|
||||
* graveyard results in it being a 2/2.
|
||||
*/
|
||||
@Test
|
||||
public void testExileTwoCardsFromGraveyard() {
|
||||
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA,
|
||||
"{T}: Exile up to two target cards from a single graveyard.",
|
||||
new String[]{"Grizzly Bears", "Forest Bear"});
|
||||
|
||||
setStrictChooseMode(true);
|
||||
execute();
|
||||
assertAllCommandsUsed();
|
||||
|
||||
assertGraveyardCount(playerB, 0);
|
||||
assertPowerToughness(playerA, "Unlicensed Hearse", 2, 2);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue