mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Added Flusterstorm test
This commit is contained in:
parent
20b24e3360
commit
0bccc7ab49
1 changed files with 32 additions and 0 deletions
|
@ -0,0 +1,32 @@
|
||||||
|
package org.mage.test.cards.single;
|
||||||
|
|
||||||
|
import mage.constants.PhaseStep;
|
||||||
|
import mage.constants.Zone;
|
||||||
|
import org.junit.Test;
|
||||||
|
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||||
|
|
||||||
|
public class FlusterstormTest extends CardTestPlayerBase {
|
||||||
|
@Test
|
||||||
|
public void testThatFlusterstormGoesToGraveyard() {
|
||||||
|
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 1);
|
||||||
|
addCard(Zone.HAND, playerA, "Spark Spray");
|
||||||
|
|
||||||
|
addCard(Zone.BATTLEFIELD, playerB, "Island");
|
||||||
|
addCard(Zone.HAND, playerB, "Flusterstorm");
|
||||||
|
|
||||||
|
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Spark Spray", playerB);
|
||||||
|
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerB, "Flusterstorm", "Spark Spray", "Spark Spray");
|
||||||
|
|
||||||
|
setChoice(playerA, "No");
|
||||||
|
setChoice(playerB, "No");
|
||||||
|
|
||||||
|
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||||
|
execute();
|
||||||
|
|
||||||
|
assertGraveyardCount(playerA, 1);
|
||||||
|
assertGraveyardCount(playerB, 1);
|
||||||
|
|
||||||
|
assertLife(playerA, 20);
|
||||||
|
assertLife(playerB, 20);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue