Failing test for Soul Warden

This commit is contained in:
magenoxx 2012-06-04 21:17:45 +04:00
parent a2301a1f66
commit 5f3c38af69

View file

@ -0,0 +1,38 @@
package org.mage.test.cards.triggers;
import mage.Constants;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
/**
*
* @author noxx
*
* Soul Warden:
* Whenever another creature enters the battlefield, you gain 1 life.
*/
public class SoulWardenTest extends CardTestPlayerBase {
/**
* Tests trigger won't happen after Soul Warden died
*/
@Test
public void testDisabledEffectOnChangeZone() {
addCard(Constants.Zone.BATTLEFIELD, playerA, "Mountain", 1);
addCard(Constants.Zone.HAND, playerA, "Lightning Bolt");
addCard(Constants.Zone.BATTLEFIELD, playerA, "Plains", 2);
addCard(Constants.Zone.HAND, playerA, "Elite Vanguard", 2);
addCard(Constants.Zone.BATTLEFIELD, playerA, "Soul Warden", 1);
castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Elite Vanguard");
castSpell(1, Constants.PhaseStep.POSTCOMBAT_MAIN, playerA, "Lightning Bolt", "Soul Warden");
castSpell(1, Constants.PhaseStep.POSTCOMBAT_MAIN, playerA, "Elite Vanguard");
setStopAt(1, Constants.PhaseStep.END_TURN);
execute();
assertLife(playerA, 21);
assertLife(playerB, 20);
}
}