mirror of
https://github.com/correl/mage.git
synced 2024-11-25 03:00:11 +00:00
[KHM] added test for Crippling Fear (#7815)
This commit is contained in:
parent
be9b9c5570
commit
59f02ad17a
1 changed files with 78 additions and 0 deletions
|
@ -0,0 +1,78 @@
|
|||
package org.mage.test.cards.single.khm;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public class CripplingFearTest extends CardTestPlayerBase {
|
||||
private static final String fear = "Crippling Fear";
|
||||
private static final String lion = "Silvercoat Lion";
|
||||
private static final String elf = "Cylian Elf";
|
||||
|
||||
@Test
|
||||
public void testChooseElf() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 4);
|
||||
addCard(Zone.BATTLEFIELD, playerA, lion);
|
||||
addCard(Zone.BATTLEFIELD, playerA, elf);
|
||||
addCard(Zone.HAND, playerA, fear);
|
||||
|
||||
setChoice(playerA, "Elf");
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, fear);
|
||||
|
||||
setStrictChooseMode(true);
|
||||
setStopAt(1, PhaseStep.END_TURN);
|
||||
execute();
|
||||
assertAllCommandsUsed();
|
||||
|
||||
assertPermanentCount(playerA, lion, 0);
|
||||
assertPermanentCount(playerA, elf, 1);
|
||||
assertGraveyardCount(playerA, lion, 1);
|
||||
assertGraveyardCount(playerA, elf, 0);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testChooseCat() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 4);
|
||||
addCard(Zone.BATTLEFIELD, playerA, lion);
|
||||
addCard(Zone.BATTLEFIELD, playerA, elf);
|
||||
addCard(Zone.HAND, playerA, fear);
|
||||
|
||||
setChoice(playerA, "Cat");
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, fear);
|
||||
|
||||
setStrictChooseMode(true);
|
||||
setStopAt(1, PhaseStep.END_TURN);
|
||||
execute();
|
||||
assertAllCommandsUsed();
|
||||
|
||||
assertPermanentCount(playerA, lion, 1);
|
||||
assertPermanentCount(playerA, elf, 0);
|
||||
assertGraveyardCount(playerA, lion, 0);
|
||||
assertGraveyardCount(playerA, elf, 1);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testChooseGoblin() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 4);
|
||||
addCard(Zone.BATTLEFIELD, playerA, lion);
|
||||
addCard(Zone.BATTLEFIELD, playerA, elf);
|
||||
addCard(Zone.HAND, playerA, fear);
|
||||
|
||||
setChoice(playerA, "Goblin");
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, fear);
|
||||
|
||||
setStrictChooseMode(true);
|
||||
setStopAt(1, PhaseStep.END_TURN);
|
||||
execute();
|
||||
assertAllCommandsUsed();
|
||||
|
||||
assertPermanentCount(playerA, lion, 0);
|
||||
assertPermanentCount(playerA, elf, 0);
|
||||
assertGraveyardCount(playerA, lion, 1);
|
||||
assertGraveyardCount(playerA, elf, 1);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue