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

improve test

This commit is contained in:
Loki 2011-11-17 14:49:22 +04:00
parent f4e889329d
commit e7ad847b0f

View file

@ -1,16 +1,10 @@
package org.mage.test.cards.destroy;
import mage.Constants;
import org.junit.Ignore;
import org.junit.Test;
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 {
@Test
@ -28,4 +22,40 @@ public class HideousEndTest extends CardTestBase {
assertPermanentCount(playerB, "Copper Myr", 0);
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);
}
}