mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 19:41:59 -08:00
improve test
This commit is contained in:
parent
f4e889329d
commit
e7ad847b0f
1 changed files with 37 additions and 7 deletions
|
|
@ -1,16 +1,10 @@
|
||||||
package org.mage.test.cards.destroy;
|
package org.mage.test.cards.destroy;
|
||||||
|
|
||||||
import mage.Constants;
|
import mage.Constants;
|
||||||
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.mage.test.serverside.base.CardTestBase;
|
import org.mage.test.serverside.base.CardTestBase;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by IntelliJ IDEA.
|
|
||||||
* User: Loki
|
|
||||||
* Date: 16/11/11
|
|
||||||
* Time: 10:28 AM
|
|
||||||
* To change this template use File | Settings | File Templates.
|
|
||||||
*/
|
|
||||||
public class HideousEndTest extends CardTestBase {
|
public class HideousEndTest extends CardTestBase {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
@ -28,4 +22,40 @@ public class HideousEndTest extends CardTestBase {
|
||||||
assertPermanentCount(playerB, "Copper Myr", 0);
|
assertPermanentCount(playerB, "Copper Myr", 0);
|
||||||
assertLife(playerB, 18);
|
assertLife(playerB, 18);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testWithInvalidTarget() {
|
||||||
|
addCard(Constants.Zone.BATTLEFIELD, playerA, "Swamp");
|
||||||
|
addCard(Constants.Zone.BATTLEFIELD, playerA, "Swamp");
|
||||||
|
addCard(Constants.Zone.BATTLEFIELD, playerA, "Swamp");
|
||||||
|
addCard(Constants.Zone.HAND, playerA, "Hideous End");
|
||||||
|
addCard(Constants.Zone.BATTLEFIELD, playerB, "Zombie Goliath");
|
||||||
|
|
||||||
|
castSpell(playerA, "Hideous End");
|
||||||
|
addFixedTarget(playerA, "Hideous End", "Zombie Goliath");
|
||||||
|
|
||||||
|
execute();
|
||||||
|
assertPermanentCount(playerB, "Zombie Goliath", 1);
|
||||||
|
assertLife(playerB, 20);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@Ignore
|
||||||
|
public void testWithPossibleProtection() {
|
||||||
|
addCard(Constants.Zone.BATTLEFIELD, playerA, "Swamp");
|
||||||
|
addCard(Constants.Zone.BATTLEFIELD, playerA, "Swamp");
|
||||||
|
addCard(Constants.Zone.BATTLEFIELD, playerA, "Swamp");
|
||||||
|
addCard(Constants.Zone.HAND, playerA, "Hideous End");
|
||||||
|
addCard(Constants.Zone.BATTLEFIELD, playerB, "Plains");
|
||||||
|
addCard(Constants.Zone.BATTLEFIELD, playerB, "Plains");
|
||||||
|
addCard(Constants.Zone.BATTLEFIELD, playerB, "Copper Myr");
|
||||||
|
addCard(Constants.Zone.HAND, playerB, "Apostle's Blessing");
|
||||||
|
|
||||||
|
castSpell(playerA, "Hideous End");
|
||||||
|
addFixedTarget(playerA, "Hideous End", "Copper Myr");
|
||||||
|
|
||||||
|
execute();
|
||||||
|
assertPermanentCount(playerB, "Copper Myr", 1);
|
||||||
|
assertLife(playerB, 20);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue