This commit is contained in:
BetaSteward 2012-03-10 22:23:21 -05:00
parent f98a1be4e0
commit e04a055dd6
5 changed files with 371 additions and 0 deletions

View file

@ -0,0 +1,57 @@
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 TestHinterlandScourge extends CardTestPlayerBase {
@Test
public void testCard() {
addCard(Constants.Zone.BATTLEFIELD, playerA, "Hinterland Hermit");
// addCard(Constants.Zone.BATTLEFIELD, playerB, "Ornithopter");
setStopAt(2, Constants.PhaseStep.BEGIN_COMBAT);
execute();
assertLife(playerA, 20);
assertLife(playerB, 20);
assertPermanentCount(playerA, "Hinterland Hermit", 0);
assertPermanentCount(playerA, "Hinterland Scourge", 1);
}
@Test
public void testCard1() {
addCard(Constants.Zone.BATTLEFIELD, playerA, "Hinterland Hermit");
addCard(Constants.Zone.BATTLEFIELD, playerB, "Ornithopter");
attack(3, playerA, "Hinterland Scourge");
setStopAt(3, Constants.PhaseStep.END_COMBAT);
execute();
assertLife(playerA, 20);
assertLife(playerB, 20);
assertPermanentCount(playerA, "Hinterland Hermit", 0);
assertPermanentCount(playerA, "Hinterland Scourge", 1);
assertPermanentCount(playerB, "Ornithopter", 0);
}
@Test
public void testCard2() {
addCard(Constants.Zone.BATTLEFIELD, playerA, "Hinterland Hermit");
attack(3, playerA, "Hinterland Scourge");
setStopAt(3, Constants.PhaseStep.END_COMBAT);
execute();
assertLife(playerA, 20);
assertLife(playerB, 17);
assertPermanentCount(playerA, "Hinterland Hermit", 0);
assertPermanentCount(playerA, "Hinterland Scourge", 1);
}
}

View file

@ -0,0 +1,41 @@
package org.mage.test.cards;
import mage.Constants;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
/**
*
* @author BetaSteward
*/
public class TestSeance extends CardTestPlayerBase {
@Test
public void testCard() {
addCard(Constants.Zone.BATTLEFIELD, playerA, "Seance");
addCard(Constants.Zone.GRAVEYARD, playerA, "Craw Wurm");
setStopAt(1, Constants.PhaseStep.DRAW);
execute();
assertLife(playerA, 20);
assertLife(playerB, 20);
assertExileCount("Craw Wurm", 1);
assertPermanentCount(playerA, "Craw Wurm", 1);
}
@Test
public void testCard1() {
addCard(Constants.Zone.BATTLEFIELD, playerA, "Seance");
addCard(Constants.Zone.GRAVEYARD, playerA, "Craw Wurm");
setStopAt(2, Constants.PhaseStep.DRAW);
execute();
assertLife(playerA, 20);
assertLife(playerB, 20);
assertExileCount("Craw Wurm", 1);
assertPermanentCount(playerA, "Craw Wurm", 0);
}
}