From 27b55b4e4900156304afa42b12cf9f229383c44b Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Fri, 22 Mar 2013 10:01:21 +0100 Subject: [PATCH] Added a test to evolve tests. --- .../cards/abilities/keywords/EvolveTest.java | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/EvolveTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/EvolveTest.java index 756b21580b..ce32489e16 100644 --- a/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/EvolveTest.java +++ b/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/EvolveTest.java @@ -87,4 +87,33 @@ public class EvolveTest extends CardTestPlayerBase { assertPowerToughness(playerA, "Experiment One", 2, 2); assertPowerToughness(playerA, "Kird Ape", 2, 3); } + + @Test + public void testEvolveWithMasterBiomance() { + + // Experiment One gets a counter because Kird Ape is 2/2 with a Forest in play + + addCard(Constants.Zone.BATTLEFIELD, playerA, "Forest", 1); + addCard(Constants.Zone.BATTLEFIELD, playerA, "Experiment One", 1); + addCard(Constants.Zone.BATTLEFIELD, playerA, "Master Biomancer", 1); + + addCard(Constants.Zone.HAND, playerA, "Experiment One"); + + castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Experiment One"); + + setStopAt(1, Constants.PhaseStep.BEGIN_COMBAT); + execute(); + + assertLife(playerA, 20); + assertLife(playerB, 20); + + assertPermanentCount(playerA, "Experiment One", 2); + assertPermanentCount(playerA, "Master Biomancer", 1); + + // the first Experiment One get one counter from the second Experiment one that comes into play with two +1/+1 counters + assertPowerToughness(playerA, "Experiment One", 2, 2); + // the casted Experiment One got two counters from Master Biomancer + assertPowerToughness(playerA, "Experiment One", 3, 3); + + } }