mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
2 DKA
This commit is contained in:
parent
f98a1be4e0
commit
e04a055dd6
5 changed files with 371 additions and 0 deletions
|
|
@ -0,0 +1,57 @@
|
|||
package org.mage.test.cards;
|
||||
|
||||
import mage.Constants;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward
|
||||
*/
|
||||
public class TestHinterlandScourge extends CardTestPlayerBase {
|
||||
|
||||
@Test
|
||||
public void testCard() {
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Hinterland Hermit");
|
||||
// addCard(Constants.Zone.BATTLEFIELD, playerB, "Ornithopter");
|
||||
|
||||
setStopAt(2, Constants.PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertLife(playerA, 20);
|
||||
assertLife(playerB, 20);
|
||||
assertPermanentCount(playerA, "Hinterland Hermit", 0);
|
||||
assertPermanentCount(playerA, "Hinterland Scourge", 1);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCard1() {
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Hinterland Hermit");
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerB, "Ornithopter");
|
||||
|
||||
attack(3, playerA, "Hinterland Scourge");
|
||||
setStopAt(3, Constants.PhaseStep.END_COMBAT);
|
||||
execute();
|
||||
|
||||
assertLife(playerA, 20);
|
||||
assertLife(playerB, 20);
|
||||
assertPermanentCount(playerA, "Hinterland Hermit", 0);
|
||||
assertPermanentCount(playerA, "Hinterland Scourge", 1);
|
||||
assertPermanentCount(playerB, "Ornithopter", 0);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCard2() {
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Hinterland Hermit");
|
||||
|
||||
attack(3, playerA, "Hinterland Scourge");
|
||||
setStopAt(3, Constants.PhaseStep.END_COMBAT);
|
||||
execute();
|
||||
|
||||
assertLife(playerA, 20);
|
||||
assertLife(playerB, 17);
|
||||
assertPermanentCount(playerA, "Hinterland Hermit", 0);
|
||||
assertPermanentCount(playerA, "Hinterland Scourge", 1);
|
||||
}
|
||||
}
|
||||
41
Mage.Tests/src/test/java/org/mage/test/cards/TestSeance.java
Normal file
41
Mage.Tests/src/test/java/org/mage/test/cards/TestSeance.java
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
package org.mage.test.cards;
|
||||
|
||||
import mage.Constants;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward
|
||||
*/
|
||||
public class TestSeance extends CardTestPlayerBase {
|
||||
|
||||
@Test
|
||||
public void testCard() {
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Seance");
|
||||
addCard(Constants.Zone.GRAVEYARD, playerA, "Craw Wurm");
|
||||
|
||||
setStopAt(1, Constants.PhaseStep.DRAW);
|
||||
execute();
|
||||
|
||||
assertLife(playerA, 20);
|
||||
assertLife(playerB, 20);
|
||||
assertExileCount("Craw Wurm", 1);
|
||||
assertPermanentCount(playerA, "Craw Wurm", 1);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCard1() {
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Seance");
|
||||
addCard(Constants.Zone.GRAVEYARD, playerA, "Craw Wurm");
|
||||
|
||||
setStopAt(2, Constants.PhaseStep.DRAW);
|
||||
execute();
|
||||
|
||||
assertLife(playerA, 20);
|
||||
assertLife(playerB, 20);
|
||||
assertExileCount("Craw Wurm", 1);
|
||||
assertPermanentCount(playerA, "Craw Wurm", 0);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue