1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-11 17:00:08 -09:00

Failing test for planeswalker uniqueness rule

This commit is contained in:
magenoxx 2012-06-11 13:42:43 +04:00
parent 12954eceee
commit 37832da657

View file

@ -0,0 +1,51 @@
package org.mage.test.sba;
import mage.Constants;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
/**
* @author noxx
*/
public class PlaneswalkerRuleTest extends CardTestPlayerBase {
/**
* Check two copies of the same planeswalker will be destroyed
*/
@Test
public void testDestroySamePlaneswalkers() {
addCard(Constants.Zone.HAND, playerA, "Jace, Memory Adept");
addCard(Constants.Zone.BATTLEFIELD, playerA, "Island", 5);
addCard(Constants.Zone.BATTLEFIELD, playerB, "Jace, Memory Adept");
castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Jace, Memory Adept");
setStopAt(1, Constants.PhaseStep.END_COMBAT);
execute();
assertPermanentCount(playerA, "Jace, Memory Adept", 0);
assertPermanentCount(playerB, "Jace, Memory Adept", 0);
}
/**
* Check two different planeswalkers but with the same subtype will be destroyed
*/
@Test
public void testDestroySameSubtype() {
addCard(Constants.Zone.HAND, playerA, "Jace Beleren");
addCard(Constants.Zone.BATTLEFIELD, playerA, "Island", 3);
addCard(Constants.Zone.BATTLEFIELD, playerB, "Jace, Memory Adept");
castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Jace Beleren");
setStopAt(1, Constants.PhaseStep.END_COMBAT);
execute();
assertPermanentCount(playerA, "Jace Beleren", 0);
assertPermanentCount(playerB, "Jace, Memory Adept", 0);
}
}