mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08:00
Tests: fixed SweepTest;
This commit is contained in:
parent
fbdfeba9d8
commit
1e40e6984d
1 changed files with 16 additions and 19 deletions
|
|
@ -1,5 +1,3 @@
|
||||||
|
|
||||||
|
|
||||||
package org.mage.test.cards.dynamicvalue;
|
package org.mage.test.cards.dynamicvalue;
|
||||||
|
|
||||||
import mage.constants.PhaseStep;
|
import mage.constants.PhaseStep;
|
||||||
|
|
@ -8,7 +6,6 @@ import org.junit.Test;
|
||||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @author BetaSteward
|
* @author BetaSteward
|
||||||
*/
|
*/
|
||||||
public class SweepTest extends CardTestPlayerBase {
|
public class SweepTest extends CardTestPlayerBase {
|
||||||
|
|
@ -20,7 +17,6 @@ public class SweepTest extends CardTestPlayerBase {
|
||||||
* Instant -- Arcane
|
* Instant -- Arcane
|
||||||
* Sweep -- Return any number of Plains you control to their owner's hand.
|
* Sweep -- Return any number of Plains you control to their owner's hand.
|
||||||
* Target creature gets +1/+1 until end of turn for each Plains returned this way.
|
* Target creature gets +1/+1 until end of turn for each Plains returned this way.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testSweep1x() {
|
public void testSweep1x() {
|
||||||
|
|
@ -29,7 +25,8 @@ public class SweepTest extends CardTestPlayerBase {
|
||||||
addCard(Zone.HAND, playerA, "Plow Through Reito");
|
addCard(Zone.HAND, playerA, "Plow Through Reito");
|
||||||
|
|
||||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Plow Through Reito");
|
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Plow Through Reito");
|
||||||
addTarget(playerA, "Plains");
|
addTarget(playerA, "Raging Goblin"); // target to boost
|
||||||
|
addTarget(playerA, "Plains"); // targets to sweep
|
||||||
|
|
||||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||||
execute();
|
execute();
|
||||||
|
|
@ -37,7 +34,6 @@ public class SweepTest extends CardTestPlayerBase {
|
||||||
assertPermanentCount(playerA, "Raging Goblin", 1);
|
assertPermanentCount(playerA, "Raging Goblin", 1);
|
||||||
assertPermanentCount(playerA, "Plains", 4);
|
assertPermanentCount(playerA, "Plains", 4);
|
||||||
assertPowerToughness(playerA, "Raging Goblin", 2, 2);
|
assertPowerToughness(playerA, "Raging Goblin", 2, 2);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
@ -47,7 +43,8 @@ public class SweepTest extends CardTestPlayerBase {
|
||||||
addCard(Zone.HAND, playerA, "Plow Through Reito");
|
addCard(Zone.HAND, playerA, "Plow Through Reito");
|
||||||
|
|
||||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Plow Through Reito");
|
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Plow Through Reito");
|
||||||
addTarget(playerA, "Plains^Plains");
|
addTarget(playerA, "Raging Goblin"); // target to boost
|
||||||
|
addTarget(playerA, "Plains^Plains"); // targets to sweep
|
||||||
|
|
||||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||||
execute();
|
execute();
|
||||||
|
|
@ -55,7 +52,6 @@ public class SweepTest extends CardTestPlayerBase {
|
||||||
assertPermanentCount(playerA, "Raging Goblin", 1);
|
assertPermanentCount(playerA, "Raging Goblin", 1);
|
||||||
assertPermanentCount(playerA, "Plains", 3);
|
assertPermanentCount(playerA, "Plains", 3);
|
||||||
assertPowerToughness(playerA, "Raging Goblin", 3, 3);
|
assertPowerToughness(playerA, "Raging Goblin", 3, 3);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
@ -65,7 +61,8 @@ public class SweepTest extends CardTestPlayerBase {
|
||||||
addCard(Zone.HAND, playerA, "Plow Through Reito");
|
addCard(Zone.HAND, playerA, "Plow Through Reito");
|
||||||
|
|
||||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Plow Through Reito");
|
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Plow Through Reito");
|
||||||
addTarget(playerA, "Plains^Plains^Plains");
|
addTarget(playerA, "Raging Goblin"); // target to boost
|
||||||
|
addTarget(playerA, "Plains^Plains^Plains"); // targets to sweep
|
||||||
|
|
||||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||||
execute();
|
execute();
|
||||||
|
|
@ -73,7 +70,6 @@ public class SweepTest extends CardTestPlayerBase {
|
||||||
assertPermanentCount(playerA, "Raging Goblin", 1);
|
assertPermanentCount(playerA, "Raging Goblin", 1);
|
||||||
assertPermanentCount(playerA, "Plains", 2);
|
assertPermanentCount(playerA, "Plains", 2);
|
||||||
assertPowerToughness(playerA, "Raging Goblin", 4, 4);
|
assertPowerToughness(playerA, "Raging Goblin", 4, 4);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
@ -83,6 +79,8 @@ public class SweepTest extends CardTestPlayerBase {
|
||||||
addCard(Zone.HAND, playerA, "Plow Through Reito");
|
addCard(Zone.HAND, playerA, "Plow Through Reito");
|
||||||
|
|
||||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Plow Through Reito");
|
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Plow Through Reito");
|
||||||
|
addTarget(playerA, "Raging Goblin"); // target to boost
|
||||||
|
addTarget(playerA, ""); // targets to sweep (zero)
|
||||||
|
|
||||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||||
execute();
|
execute();
|
||||||
|
|
@ -90,7 +88,6 @@ public class SweepTest extends CardTestPlayerBase {
|
||||||
assertPermanentCount(playerA, "Raging Goblin", 1);
|
assertPermanentCount(playerA, "Raging Goblin", 1);
|
||||||
assertPermanentCount(playerA, "Plains", 5);
|
assertPermanentCount(playerA, "Plains", 5);
|
||||||
assertPowerToughness(playerA, "Raging Goblin", 1, 1);
|
assertPowerToughness(playerA, "Raging Goblin", 1, 1);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue