Create test for Kalitas, Bloodchief of Ghet (ZEN)

Create test for Kalitas, Bloodchief of Ghet (ZEN)
This commit is contained in:
ciaccona007 2017-07-28 23:37:41 -04:00 committed by GitHub
commit a7f2f0bd1c

View file

@ -0,0 +1,25 @@
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;
public class KalitasBloodchiefOfGhetTest extends CardTestPlayerBase {
@Test
public void testTokenCreatedOnlyIfTargetDies() {
addCard(Zone.BATTLEFIELD, playerA, "Kalitas, Bloodchief of Ghet", 1);
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 3);
addCard(Zone.BATTLEFIELD, playerA, "Rest in Peace", 1);
addCard(Zone.BATTLEFIELD, playerB, "Gray Ogre", 1);
activateAbility(3, PhaseStep.PRECOMBAT_MAIN, playerA, "{B}{B}{B}", "Gray Ogre");
setStopAt(3, PhaseStep.BEGIN_COMBAT);
execute();
assertPermanentCount(playerA, 5);
assertPermanentCount(playerB, 0);
}
}