mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 12:02:01 -08:00
Added test for Champion of Lambholt
This commit is contained in:
parent
a21128932b
commit
ce78f64fab
1 changed files with 40 additions and 0 deletions
|
|
@ -0,0 +1,40 @@
|
|||
package org.mage.test.cards.single;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
* Created by goesta on 11/02/2017.
|
||||
*/
|
||||
public class ChampionOfLambholtTest extends CardTestPlayerBase {
|
||||
|
||||
@Test
|
||||
public void testThatEffectIsTriggeredByControllingPlayer() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Champion of Lambholt");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Plains", 5);
|
||||
addCard(Zone.HAND, playerA, "Increasing Devotion");
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Increasing Devotion");
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertPowerToughness(playerA, "Champion of Lambholt", 6, 6);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testThatEffectIsNotTriggeredByOpponentPlayer() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Champion of Lambholt");
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Plains", 5);
|
||||
addCard(Zone.HAND, playerB, "Increasing Devotion");
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerB, "Increasing Devotion");
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertPowerToughness(playerA, "Champion of Lambholt", 1, 1);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue