From 92cfe2403e61e5167eb4169be5a64ef4304ace1e Mon Sep 17 00:00:00 2001 From: Alexsandro Date: Tue, 10 Jan 2017 11:40:04 -0200 Subject: [PATCH] Create cipher test for Muraganda Petroglyphs --- .../single/fut/MuragandaPetroglyphsTest.java | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/single/fut/MuragandaPetroglyphsTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/single/fut/MuragandaPetroglyphsTest.java index f7ef102d66..c8263589cb 100644 --- a/Mage.Tests/src/test/java/org/mage/test/cards/single/fut/MuragandaPetroglyphsTest.java +++ b/Mage.Tests/src/test/java/org/mage/test/cards/single/fut/MuragandaPetroglyphsTest.java @@ -171,15 +171,19 @@ public class MuragandaPetroglyphsTest extends CardTestPlayerBase { /** * Cipher grants an ability to creatures, meaning the affected creatures would no longer get the +2/+2 bonus. */ -// TODO See how to set the cipher ability in tests -// public void cipherTest() { -// addCard(Zone.BATTLEFIELD, playerA, "Swamp", 6); -// addCard(Zone.BATTLEFIELD, playerA, "Muraganda Petroglyphs", 1); -// addCard(Zone.BATTLEFIELD, playerA, "Grizzly Bears", 1); -// -// addCard(Zone.HAND, playerA, "Shadow Slice"); // {4}{B} -// castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Shadow Slice"); -// -// -// } + @Test + public void cipherTest() { + addCard(Zone.BATTLEFIELD, playerA, "Swamp", 6); + addCard(Zone.BATTLEFIELD, playerA, "Muraganda Petroglyphs", 1); + addCard(Zone.BATTLEFIELD, playerA, "Grizzly Bears", 1); + + addCard(Zone.HAND, playerA, "Shadow Slice"); // {4}{B} + castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Shadow Slice"); + setChoice(playerA, "Grizzly Bears"); + + setStopAt(1, PhaseStep.BEGIN_COMBAT); + execute(); + + assertPowerToughness(playerA, "Grizzly Bears", 2, 2); + } }