From 35b8e55f0feae6863670798d4d54914816d458cf Mon Sep 17 00:00:00 2001 From: Derek Monturo Date: Fri, 17 Mar 2017 17:00:03 -0400 Subject: [PATCH 1/2] initial test setup --- .../cards/single/bfz/EmeriaShepherdTest.java | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Mage.Tests/src/test/java/org/mage/test/cards/single/bfz/EmeriaShepherdTest.java diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/single/bfz/EmeriaShepherdTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/single/bfz/EmeriaShepherdTest.java new file mode 100644 index 0000000000..54ec310dc2 --- /dev/null +++ b/Mage.Tests/src/test/java/org/mage/test/cards/single/bfz/EmeriaShepherdTest.java @@ -0,0 +1,54 @@ +package org.mage.test.cards.single.bfz; + +import mage.constants.PhaseStep; +import mage.constants.Zone; +import org.junit.Test; +import org.mage.test.serverside.base.CardTestPlayerBase; + +/** + * Created by escplan9 + */ +public class EmeriaShepherdTest extends CardTestPlayerBase { + + /* + * Reported bug: Emeria Shepherd can't bounce Bruna to the table when a plains enters the battlefield. + */ + @Test + public void emeriaInteractionWithBruna() + { + + /* + * + * Emeria Shepherd (5)(W)(W) + Flying 4/4 Creature Angel + Landfall — Whenever a land enters the battlefield under your control, you may return target nonland permanent card from your graveyard to your hand. + If that land is a Plains, you may return that nonland permanent card to the battlefield instead. + */ + String emeria = "Emeria Shepherd"; + + /* + * Bruna, The Fading Light (5)(W)(W) + * Legendary Creature - Angel Horror 5/7 + When you cast Bruna, the Fading Light, you may return target Angel or Human creature card from your graveyard to the battlefield. + Flying, vigilance + (Melds with Gisela, the Broken Blade.) + */ + String bruna = "Bruna, The Fading Light"; + + addCard(Zone.BATTLEFIELD, playerA, emeria); + addCard(Zone.HAND, playerA, "Plains"); + addCard(Zone.GRAVEYARD, playerA, bruna); + addCard(Zone.BATTLEFIELD, playerA, "Plains", 7); + + playLand(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Plains"); + setChoice(playerA, "Yes"); // opt to use Emeria's triggered ability + addTarget(playerA, bruna); // target Bruna in grave + + setStopAt(1, PhaseStep.BEGIN_COMBAT); + execute(); + + assertHandCount(playerA, "Plains", 0); + assertGraveyardCount(playerA, bruna, 0); + assertHandCount(playerA, bruna, 1); + } +} From 4aaea107a03133c252b4de0aa5397ce7dfb0df3d Mon Sep 17 00:00:00 2001 From: drmDev Date: Fri, 17 Mar 2017 17:58:42 -0400 Subject: [PATCH 2/2] #2409 cannot duplicate with UT --- .../org/mage/test/cards/single/bfz/EmeriaShepherdTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/single/bfz/EmeriaShepherdTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/single/bfz/EmeriaShepherdTest.java index 54ec310dc2..88ca8bfce9 100644 --- a/Mage.Tests/src/test/java/org/mage/test/cards/single/bfz/EmeriaShepherdTest.java +++ b/Mage.Tests/src/test/java/org/mage/test/cards/single/bfz/EmeriaShepherdTest.java @@ -16,7 +16,6 @@ public class EmeriaShepherdTest extends CardTestPlayerBase { @Test public void emeriaInteractionWithBruna() { - /* * * Emeria Shepherd (5)(W)(W) @@ -33,7 +32,7 @@ public class EmeriaShepherdTest extends CardTestPlayerBase { Flying, vigilance (Melds with Gisela, the Broken Blade.) */ - String bruna = "Bruna, The Fading Light"; + String bruna = "Bruna, the Fading Light"; addCard(Zone.BATTLEFIELD, playerA, emeria); addCard(Zone.HAND, playerA, "Plains"); @@ -49,6 +48,7 @@ public class EmeriaShepherdTest extends CardTestPlayerBase { assertHandCount(playerA, "Plains", 0); assertGraveyardCount(playerA, bruna, 0); - assertHandCount(playerA, bruna, 1); + assertHandCount(playerA, bruna, 0); + assertPermanentCount(playerA, bruna, 1); } }