From e7ad847b0f8f3f72a9f7be631b3dbee2bd0a79dc Mon Sep 17 00:00:00 2001 From: Loki Date: Thu, 17 Nov 2011 14:49:22 +0400 Subject: [PATCH] improve test --- .../test/cards/destroy/HideousEndTest.java | 44 ++++++++++++++++--- 1 file changed, 37 insertions(+), 7 deletions(-) diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/destroy/HideousEndTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/destroy/HideousEndTest.java index 7b82021c0fa..2151224a323 100644 --- a/Mage.Tests/src/test/java/org/mage/test/cards/destroy/HideousEndTest.java +++ b/Mage.Tests/src/test/java/org/mage/test/cards/destroy/HideousEndTest.java @@ -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); + } }