UT for Kiora Behemoth untap ability

This commit is contained in:
Derek Monturo 2019-05-05 05:39:27 -04:00
parent e980240553
commit dccea47889
2 changed files with 51 additions and 0 deletions

1
.gitignore vendored
View file

@ -49,6 +49,7 @@ Mage.Server.Plugins/Mage.Game.FreeForAll/target
Mage.Server.Plugins/Mage.Game.MomirDuel/target Mage.Server.Plugins/Mage.Game.MomirDuel/target
Mage.Server.Plugins/Mage.Game.MomirGame/target/ Mage.Server.Plugins/Mage.Game.MomirGame/target/
Mage.Server.Plugins/Mage.Game.PennyDreadfulCommanderFreeForAll/target Mage.Server.Plugins/Mage.Game.PennyDreadfulCommanderFreeForAll/target
Mage.Server.Plugins/Mage.Game.FreeformCommanderDuel/target/
Mage.Server.Plugins/Mage.Game.FreeformCommanderFreeForAll/target/ Mage.Server.Plugins/Mage.Game.FreeformCommanderFreeForAll/target/
Mage.Server.Plugins/Mage.Game.TinyLeadersDuel/target Mage.Server.Plugins/Mage.Game.TinyLeadersDuel/target
Mage.Server.Plugins/Mage.Game.TwoPlayerDuel/target Mage.Server.Plugins/Mage.Game.TwoPlayerDuel/target

View file

@ -0,0 +1,50 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.mage.test.cards.single.war;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import mage.counters.CounterType;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
/**
* @author escplan9
*/
public class KioraTest extends CardTestPlayerBase {
/*
{2} {U/G}
7 loyalty
Whenever a creature with power 4 or greater enters the battlefield, draw a card.
[-1]: Untap target permanent.
*/
public final String kiora = "Kiora, Behemoth Beckoner";
@Test
public void kioraUntapLand() {
addCard(Zone.BATTLEFIELD, playerA, kiora);
addCard(Zone.BATTLEFIELD, playerA, "Bronze Sable"); // {2} 2/1
addCard(Zone.BATTLEFIELD, playerA, "Forest");
addCard(Zone.HAND, playerA, "Giant Growth");
// cast a spell to tap the only land
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Giant Growth", "Bronze Sable");
// untap that only land
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "-1: Untap target permanent", "Forest");
setStopAt(1, PhaseStep.BEGIN_COMBAT);
execute();
assertGraveyardCount(playerA, "Giant Growth", 1);
assertHandCount(playerA, 0);
assertPowerToughness(playerA, "Bronze Sable", 5, 4); // giant growthed 2/1 + 3/3 = 5/4
assertCounterCount(playerA, kiora, CounterType.LOYALTY, 6);
assertTapped("Forest", false); // Kiora's untap
}
}