Merge pull request #2859 from goesta/FlusterstormTest

Added Flusterstorm test
This commit is contained in:
LevelX2 2017-02-13 00:06:45 +01:00 committed by GitHub
commit 7f866f1b21

View file

@ -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);
}
}