Failing test for [AVR] Cloudshift

This commit is contained in:
magenoxx 2012-05-17 20:17:22 +04:00
parent 8759b6de33
commit 38fc180ed4

View file

@ -0,0 +1,35 @@
package org.mage.test.cards.control;
import mage.Constants;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
/**
* Tests the effect:
* - Exile target creature you control, then return that card to the battlefield under your control
*
* This effect grants you permanent control over the returned creature.
* So you mail steal opponent's creature with "Act of Treason" and then use this effect for permanent control effect.
*
* @author noxx
*/
public class ExileAndReturnUnderYourControl extends CardTestPlayerBase {
@Test
public void testPermanentControlEffect() {
addCard(Constants.Zone.HAND, playerA, "Cloudshift");
addCard(Constants.Zone.HAND, playerA, "Act of Treason");
addCard(Constants.Zone.BATTLEFIELD, playerA, "Plains", 3);
addCard(Constants.Zone.BATTLEFIELD, playerA, "Mountain", 3);
addCard(Constants.Zone.BATTLEFIELD, playerB, "Elite Vanguard");
castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Act of Treason", "Elite Vanguard");
castSpell(1, Constants.PhaseStep.POSTCOMBAT_MAIN, playerA, "Cloudshift", "Elite Vanguard");
setStopAt(2, Constants.PhaseStep.BEGIN_COMBAT);
execute();
assertPermanentCount(playerA, "Elite Vanguard", 1);
}
}