This commit is contained in:
BetaSteward 2012-03-03 23:20:47 -05:00
parent db02ea3aa6
commit 5525cd24f9
7 changed files with 550 additions and 0 deletions

View file

@ -0,0 +1,73 @@
package org.mage.test.cards;
import mage.Constants;
import org.junit.Ignore;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
/**
*
* @author BetaSteward
*/
public class TestDungeonGeists extends CardTestPlayerBase {
@Test
public void testCard() {
addCard(Constants.Zone.BATTLEFIELD, playerA, "Island", 4);
addCard(Constants.Zone.HAND, playerA, "Dungeon Geists");
addCard(Constants.Zone.BATTLEFIELD, playerB, "Craw Wurm");
castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Dungeon Geists");
setStopAt(2, Constants.PhaseStep.DRAW);
execute();
assertLife(playerA, 20);
assertLife(playerB, 20);
assertPermanentCount(playerA, "Dungeon Geists", 1);
assertPermanentCount(playerB, "Craw Wurm", 1);
assertTapped("Dungeon Geists", false);
assertTapped("Craw Wurm", true);
}
@Test
public void testCard1() {
addCard(Constants.Zone.BATTLEFIELD, playerA, "Island", 4);
addCard(Constants.Zone.HAND, playerA, "Dungeon Geists");
addCard(Constants.Zone.BATTLEFIELD, playerB, "Craw Wurm");
addCard(Constants.Zone.HAND, playerB, "Act of Treason");
addCard(Constants.Zone.BATTLEFIELD, playerB, "Mountain", 3);
castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Dungeon Geists");
castSpell(2, Constants.PhaseStep.PRECOMBAT_MAIN, playerB, "Act of Treason", "Dungeon Geists");
setStopAt(4, Constants.PhaseStep.DRAW);
execute();
assertLife(playerA, 20);
assertLife(playerB, 20);
assertPermanentCount(playerA, "Dungeon Geists", 1);
assertPermanentCount(playerB, "Craw Wurm", 1);
assertTapped("Dungeon Geists", false);
assertTapped("Craw Wurm", false);
}
@Test
public void testCard2() {
addCard(Constants.Zone.BATTLEFIELD, playerA, "Island", 9);
addCard(Constants.Zone.HAND, playerA, "Dungeon Geists");
addCard(Constants.Zone.HAND, playerA, "Mind Control");
addCard(Constants.Zone.BATTLEFIELD, playerB, "Craw Wurm");
castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Dungeon Geists");
castSpell(1, Constants.PhaseStep.POSTCOMBAT_MAIN, playerA, "Mind Control", "Craw Wurm");
setStopAt(3, Constants.PhaseStep.DRAW);
execute();
assertLife(playerA, 20);
assertLife(playerB, 20);
assertPermanentCount(playerA, "Dungeon Geists", 1);
assertPermanentCount(playerA, "Craw Wurm", 1);
assertTapped("Dungeon Geists", false);
assertTapped("Craw Wurm", true);
}
}

View file

@ -0,0 +1,74 @@
package org.mage.test.cards;
import mage.Constants;
import mage.counters.CounterType;
import mage.filter.Filter;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
/**
*
* @author BetaSteward
*/
public class TestSoulSeizer extends CardTestPlayerBase {
@Test
public void testCard() {
addCard(Constants.Zone.BATTLEFIELD, playerA, "Soul Seizer");
addCard(Constants.Zone.BATTLEFIELD, playerB, "Craw Wurm");
attack(1, playerA, "Soul Seizer");
setStopAt(1, Constants.PhaseStep.END_COMBAT);
execute();
assertLife(playerA, 20);
assertLife(playerB, 19);
assertPermanentCount(playerA, "Ghastly Haunting", 1);
assertPermanentCount(playerA, "Soul Seizer", 0);
assertPermanentCount(playerA, "Craw Wurm", 1);
}
@Test
public void testCard1() {
addCard(Constants.Zone.BATTLEFIELD, playerA, "Soul Seizer");
addCard(Constants.Zone.BATTLEFIELD, playerB, "Craw Wurm");
addCard(Constants.Zone.BATTLEFIELD, playerB, "Plains", 2);
addCard(Constants.Zone.HAND, playerB, "Clear");
attack(1, playerA, "Soul Seizer");
castSpell(2, Constants.PhaseStep.PRECOMBAT_MAIN, playerB, "Clear", "Ghastly Haunting");
setStopAt(2, Constants.PhaseStep.BEGIN_COMBAT);
execute();
assertLife(playerA, 20);
assertLife(playerB, 19);
assertPermanentCount(playerA, "Ghastly Haunting", 0);
assertPermanentCount(playerA, "Soul Seizer", 0);
assertGraveyardCount(playerA, 1);
assertPermanentCount(playerB, "Craw Wurm", 1);
}
@Test
public void testCard2() {
addCard(Constants.Zone.BATTLEFIELD, playerA, "Soul Seizer");
addCard(Constants.Zone.BATTLEFIELD, playerA, "Forest", 2);
addCard(Constants.Zone.HAND, playerA, "Battlegrowth");
addCard(Constants.Zone.BATTLEFIELD, playerB, "Craw Wurm");
castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Battlegrowth", "Soul Seizer");
attack(1, playerA, "Soul Seizer");
setStopAt(1, Constants.PhaseStep.END_COMBAT);
execute();
assertLife(playerA, 20);
assertLife(playerB, 18);
assertPermanentCount(playerA, "Ghastly Haunting", 1);
assertCounterCount("Ghastly Haunting", CounterType.P1P1, 1);
assertPermanentCount(playerA, "Soul Seizer", 0);
assertGraveyardCount(playerA, 1);
assertPermanentCount(playerA, "Craw Wurm", 1);
assertPowerToughness(playerA, "Craw Wurm", 6, 4, Filter.ComparisonScope.All);
}
}