From 2c80ed377dddc8ac3146580431b1dd71868a3f09 Mon Sep 17 00:00:00 2001 From: jeffwadsworth Date: Sun, 24 Jun 2012 11:22:11 -0500 Subject: [PATCH] - Added test for Rebound ability. Fails. This was working in .83 --- .../cards/abilities/keywords/ReboundTest.java | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/ReboundTest.java diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/ReboundTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/ReboundTest.java new file mode 100644 index 00000000000..5805c846a61 --- /dev/null +++ b/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/ReboundTest.java @@ -0,0 +1,34 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ +package org.mage.test.cards.abilities.keywords; + +import mage.Constants; +import org.junit.Test; +import org.mage.test.serverside.base.CardTestPlayerBase; + +/** + * + * @author jeff + */ +public class ReboundTest extends CardTestPlayerBase{ + + @Test + public void testCastFromHandMovedToExile() { + addCard(Constants.Zone.BATTLEFIELD, playerA, "Island", 1); + addCard(Constants.Zone.HAND, playerA, "Distortion Strike"); + + addCard(Constants.Zone.BATTLEFIELD, playerB, "Memnite", 1); + + castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Distortion Strike"); + + setStopAt(1, Constants.PhaseStep.BEGIN_COMBAT); + execute(); + + //check exile and graveyard + + assertExileCount("Distortion Strike", 1); + assertGraveyardCount(playerA, 0); + } +}