Hideous End test

This commit is contained in:
Loki 2011-11-16 15:27:16 +04:00
parent 07902b17c7
commit 2d94164a26
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,31 @@
package org.mage.test.cards.destroy;
import mage.Constants;
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
public void testWithValidTarget() {
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.HAND, playerB, "Copper Myr");
castSpell(playerA, "Hideous End");
addFixedTarget(playerA, "Hideous End", "Copper Myr");
execute();
assertPermanentCount(playerB, "Copper Myr", 0);
assertLife(playerB, 18);
}
}

View file

@ -31,6 +31,7 @@
<module>Mage.Plugins</module>
<module>Mage.Server.Plugins</module>
<module>Mage.Server.Console</module>
<module>Mage.Tests</module>
</modules>
<repositories>