From be62b11d2fc956eae8400859a155036466e640c7 Mon Sep 17 00:00:00 2001 From: drmDev Date: Thu, 23 Mar 2017 23:52:02 -0400 Subject: [PATCH] #3005 halimar tidecaller unit test. unable to duplicate issue. --- .../single/bfz/HalimarTidecallerTest.java | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Mage.Tests/src/test/java/org/mage/test/cards/single/bfz/HalimarTidecallerTest.java diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/single/bfz/HalimarTidecallerTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/single/bfz/HalimarTidecallerTest.java new file mode 100644 index 0000000000..2180d97fa7 --- /dev/null +++ b/Mage.Tests/src/test/java/org/mage/test/cards/single/bfz/HalimarTidecallerTest.java @@ -0,0 +1,50 @@ +package org.mage.test.cards.single.bfz; + +import mage.abilities.keyword.FlyingAbility; +import mage.abilities.keyword.TrampleAbility; +import mage.constants.PhaseStep; +import mage.constants.Zone; +import org.junit.Test; +import org.mage.test.serverside.base.CardTestPlayerBase; + +/** + * + * @author escplan9 + */ +public class HalimarTidecallerTest extends CardTestPlayerBase { + + @Test + public void testMe() { + + /* + Halimar Tidecaller {2}{U} + Creature — Human Wizard Ally 2/3 + When Halimar Tidecaller enters the battlefield, you may return target card with awaken from your graveyard to your hand. + Land creatures you control have flying. + */ + String hTidecaller = "Halimar Tidecaller"; + + /* + Treetop Village + Land + Treetop Village enters the battlefield tapped. + {T}: Add Green to your mana pool. + {1}{G}: Treetop Village becomes a 3/3 green Ape creature with trample until end of turn. It's still a land. + */ + String tVillage = "Treetop Village"; + + addCard(Zone.BATTLEFIELD, playerA, hTidecaller); + addCard(Zone.BATTLEFIELD, playerA, tVillage); + addCard(Zone.BATTLEFIELD, playerA, "Forest", 2); + + activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{1}{G}:"); // activate tree-top + attack(1, playerA, tVillage); + + setStopAt(1, PhaseStep.POSTCOMBAT_MAIN); + execute(); + + assertLife(playerB, 17); // 3 damage from tree-top + assertAbility(playerA, tVillage, FlyingAbility.getInstance(), true); + assertAbility(playerA, tVillage, TrampleAbility.getInstance(), true); + } +}