mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 20:11:59 -08:00
add test for Unbreakable Bond
This commit is contained in:
parent
d5a239526a
commit
29679434ad
1 changed files with 32 additions and 0 deletions
|
|
@ -0,0 +1,32 @@
|
|||
package org.mage.test.cards.single.iko;
|
||||
|
||||
import mage.abilities.keyword.LifelinkAbility;
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import mage.counters.CounterType;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
* @author xenohedron
|
||||
*/
|
||||
public class UnbreakableBondTest extends CardTestPlayerBase {
|
||||
|
||||
@Test
|
||||
public void testLifelinkCounter() {
|
||||
addCard(Zone.GRAVEYARD, playerA, "Barony Vampire");
|
||||
addCard(Zone.HAND, playerA, "Unbreakable Bond");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 5);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Unbreakable Bond", "Barony Vampire");
|
||||
|
||||
setStrictChooseMode(true);
|
||||
setStopAt(1, PhaseStep.END_TURN);
|
||||
execute();
|
||||
|
||||
assertGraveyardCount(playerA, "Unbreakable Bond", 1);
|
||||
assertCounterCount(playerA, "Barony Vampire", CounterType.LIFELINK, 1);
|
||||
assertPowerToughness(playerA, "Barony Vampire", 3, 2);
|
||||
assertAbility(playerA, "Barony Vampire", LifelinkAbility.getInstance(), true);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue