This commit is contained in:
BetaSteward 2012-03-11 23:20:56 -04:00
parent c709d862ae
commit de4153c5aa
9 changed files with 694 additions and 19 deletions

View file

@ -0,0 +1,28 @@
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 TestFeedThePack extends CardTestPlayerBase {
@Test
public void testCard() {
addCard(Constants.Zone.BATTLEFIELD, playerA, "Feed the Pack");
addCard(Constants.Zone.BATTLEFIELD, playerA, "Craw Wurm");
setStopAt(2, Constants.PhaseStep.DRAW);
execute();
assertLife(playerA, 20);
assertLife(playerB, 20);
assertPermanentCount(playerA, "Wolf", 4);
assertPermanentCount(playerB, "Craw Wurm", 0);
}
}

View file

@ -0,0 +1,67 @@
package org.mage.test.cards;
import mage.Constants;
import mage.filter.Filter;
import org.junit.Ignore;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
/**
*
* also tests undying
*
* @author BetaSteward
*/
public class TestFlayerOfTheHatebound extends CardTestPlayerBase {
@Test
public void testCard() {
addCard(Constants.Zone.BATTLEFIELD, playerA, "Flayer of the Hatebound");
addCard(Constants.Zone.BATTLEFIELD, playerA, "Mountain", 1);
addCard(Constants.Zone.HAND, playerA, "Lightning Bolt", 1);
castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Lightning Bolt", "Flayer of the Hatebound");
setStopAt(2, Constants.PhaseStep.DRAW);
execute();
assertLife(playerA, 20);
assertLife(playerB, 15);
assertPermanentCount(playerA, "Flayer of the Hatebound", 1);
assertPowerToughness(playerA, "Flayer of the Hatebound", 5, 3, Filter.ComparisonScope.Any);
}
@Test
public void testCard1() {
addCard(Constants.Zone.BATTLEFIELD, playerA, "Flayer of the Hatebound");
addCard(Constants.Zone.BATTLEFIELD, playerA, "Swamp", 2);
addCard(Constants.Zone.GRAVEYARD, playerA, "Reassembling Skeleton", 1);
activateAbility(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "{1}{B}:");
setStopAt(1, Constants.PhaseStep.BEGIN_COMBAT);
execute();
assertLife(playerA, 20);
assertLife(playerB, 19);
assertPermanentCount(playerA, "Flayer of the Hatebound", 1);
assertPermanentCount(playerA, "Reassembling Skeleton", 1);
assertPowerToughness(playerA, "Flayer of the Hatebound", 4, 2, Filter.ComparisonScope.Any);
}
@Test
public void testCard2() {
addCard(Constants.Zone.BATTLEFIELD, playerA, "Flayer of the Hatebound");
addCard(Constants.Zone.BATTLEFIELD, playerB, "Swamp", 2);
addCard(Constants.Zone.GRAVEYARD, playerB, "Reassembling Skeleton", 1);
activateAbility(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerB, "{1}{B}:");
setStopAt(1, Constants.PhaseStep.BEGIN_COMBAT);
execute();
assertLife(playerA, 20);
assertLife(playerB, 20);
assertPermanentCount(playerA, "Flayer of the Hatebound", 1);
assertPermanentCount(playerB, "Reassembling Skeleton", 1);
assertPowerToughness(playerA, "Flayer of the Hatebound", 4, 2, Filter.ComparisonScope.Any);
}
}

View file

@ -0,0 +1,30 @@
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 TestUnhallowedCathar extends CardTestPlayerBase {
@Test
public void testCard() {
addCard(Constants.Zone.BATTLEFIELD, playerA, "Mountain");
addCard(Constants.Zone.BATTLEFIELD, playerA, "Loyal Cathar");
addCard(Constants.Zone.HAND, playerA, "Lightning Bolt");
castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Lightning Bolt", "Loyal Cathar");
setStopAt(2, Constants.PhaseStep.DRAW);
execute();
assertLife(playerA, 20);
assertLife(playerB, 20);
assertPermanentCount(playerA, "Loyal Cathar", 0);
assertPermanentCount(playerA, "Unhallowed Cathar", 1);
}
}