mirror of
https://github.com/correl/mage.git
synced 2025-03-07 20:53:18 -10:00
Failing test for Dearly Departed
This commit is contained in:
parent
a59c01b829
commit
eea1aa3c52
1 changed files with 66 additions and 0 deletions
|
@ -0,0 +1,66 @@
|
|||
package org.mage.test.cards.continuous;
|
||||
|
||||
import mage.Constants;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
* @author noxx
|
||||
*/
|
||||
public class DearlyDepartedTest extends CardTestPlayerBase {
|
||||
|
||||
/**
|
||||
* Tests that Dearly Departed doesn't give counter while being in hand
|
||||
*/
|
||||
@Test
|
||||
public void testDoesntWorkFromHand() {
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Plains", 1);
|
||||
addCard(Constants.Zone.HAND, playerA, "Elite Vanguard");
|
||||
addCard(Constants.Zone.HAND, playerA, "Dearly Departed");
|
||||
|
||||
castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Elite Vanguard");
|
||||
|
||||
setStopAt(1, Constants.PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertPermanentCount(playerA, "Elite Vanguard", 1);
|
||||
assertPowerToughness(playerA, "Elite Vanguard", 2, 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests works in owner's graveyard
|
||||
*/
|
||||
@Test
|
||||
public void testInGraveyard() {
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Plains", 1);
|
||||
addCard(Constants.Zone.HAND, playerA, "Elite Vanguard");
|
||||
addCard(Constants.Zone.GRAVEYARD, playerA, "Dearly Departed");
|
||||
|
||||
castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Elite Vanguard");
|
||||
|
||||
setStopAt(1, Constants.PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertPermanentCount(playerA, "Elite Vanguard", 1);
|
||||
assertPowerToughness(playerA, "Elite Vanguard", 3, 2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests doesn't work in opponent's graveyard
|
||||
*/
|
||||
@Test
|
||||
public void testInOpponentGraveyard() {
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Plains", 1);
|
||||
addCard(Constants.Zone.HAND, playerA, "Elite Vanguard");
|
||||
addCard(Constants.Zone.GRAVEYARD, playerB, "Dearly Departed");
|
||||
|
||||
castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Elite Vanguard");
|
||||
|
||||
setStopAt(1, Constants.PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertPermanentCount(playerA, "Elite Vanguard", 1);
|
||||
assertPowerToughness(playerA, "Elite Vanguard", 2, 1);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue