Two tests for Public Execution to check interaction with LoseAbility and Clone effects

This commit is contained in:
magenoxx 2012-07-18 10:31:06 +04:00
parent ed0af0faee
commit 7d7f0e6dec
2 changed files with 41 additions and 0 deletions

View file

@ -68,4 +68,25 @@ public class CloneTest extends CardTestPlayerBase {
assertLife(playerA, 18);
assertLife(playerB, 20);
}
@Test
public void testCard3() {
addCard(Constants.Zone.BATTLEFIELD, playerA, "Island", 6);
addCard(Constants.Zone.BATTLEFIELD, playerA, "Swamp", 6);
addCard(Constants.Zone.HAND, playerA, "Public Execution");
addCard(Constants.Zone.HAND, playerA, "Clone");
addCard(Constants.Zone.BATTLEFIELD, playerB, "Llanowar Elves");
addCard(Constants.Zone.BATTLEFIELD, playerB, "Craw Wurm");
castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Public Executio", "Llanowar Elves");
castSpell(1, Constants.PhaseStep.POSTCOMBAT_MAIN, playerA, "Clone");
setStopAt(1, Constants.PhaseStep.END_TURN);
execute();
assertPermanentCount(playerB, "Llanowar Elves", 0);
assertPowerToughness(playerB, "Craw Wurm", 4, 4);
assertPowerToughness(playerA, "Craw Wurm", 6, 4);
}
}

View file

@ -58,4 +58,24 @@ public class TurnToFrogTest extends CardTestPlayerBase {
assertCounterCount("Raging Ravine", CounterType.P1P1, 1);
}
@Test
public void testCard3() {
addCard(Constants.Zone.BATTLEFIELD, playerA, "Island", 6);
addCard(Constants.Zone.BATTLEFIELD, playerA, "Swamp", 6);
addCard(Constants.Zone.HAND, playerA, "Public Execution");
addCard(Constants.Zone.HAND, playerA, "Turn to Frog");
addCard(Constants.Zone.BATTLEFIELD, playerB, "Llanowar Elves");
addCard(Constants.Zone.BATTLEFIELD, playerB, "Craw Wurm");
castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Public Executio", "Llanowar Elves");
castSpell(1, Constants.PhaseStep.POSTCOMBAT_MAIN, playerA, "Turn to Frog", "Craw Wurm");
setStopAt(1, Constants.PhaseStep.END_TURN);
execute();
assertPermanentCount(playerB, "Llanowar Elves", 0);
assertPowerToughness(playerB, "Craw Wurm", -1, 1);
}
}