Merge pull request #2857 from goesta/ChampionOfLambholtTest

Champion of Lambholt test
This commit is contained in:
LevelX2 2017-02-13 00:05:52 +01:00 committed by GitHub
commit 0b6fbbe5e4

View file

@ -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);
}
}