mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 03:22:00 -08:00
Hideous End test
This commit is contained in:
parent
07902b17c7
commit
2d94164a26
2 changed files with 32 additions and 0 deletions
|
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
1
pom.xml
1
pom.xml
|
|
@ -31,6 +31,7 @@
|
||||||
<module>Mage.Plugins</module>
|
<module>Mage.Plugins</module>
|
||||||
<module>Mage.Server.Plugins</module>
|
<module>Mage.Server.Plugins</module>
|
||||||
<module>Mage.Server.Console</module>
|
<module>Mage.Server.Console</module>
|
||||||
|
<module>Mage.Tests</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue