From 5f3c38af69eddb38dceaeecd34983653c5752958 Mon Sep 17 00:00:00 2001 From: magenoxx Date: Mon, 4 Jun 2012 21:17:45 +0400 Subject: [PATCH] Failing test for Soul Warden --- .../test/cards/triggers/SoulWardenTest.java | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Mage.Tests/src/test/java/org/mage/test/cards/triggers/SoulWardenTest.java diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/triggers/SoulWardenTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/triggers/SoulWardenTest.java new file mode 100644 index 0000000000..394056168c --- /dev/null +++ b/Mage.Tests/src/test/java/org/mage/test/cards/triggers/SoulWardenTest.java @@ -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); + } + +}