From 1405bc87aecefbc30794ac2ca2205b011974bcc1 Mon Sep 17 00:00:00 2001 From: igoudt Date: Fri, 16 Mar 2018 18:49:25 +0100 Subject: [PATCH] unit test shapestealer #2 --- .../test/cards/triggers/ShapeStealerTest.java | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/triggers/ShapeStealerTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/triggers/ShapeStealerTest.java index 5eff972a8a..5908aed99f 100644 --- a/Mage.Tests/src/test/java/org/mage/test/cards/triggers/ShapeStealerTest.java +++ b/Mage.Tests/src/test/java/org/mage/test/cards/triggers/ShapeStealerTest.java @@ -1,4 +1,25 @@ package org.mage.test.cards.triggers; -public class ShapeStealerTest { +import mage.constants.PhaseStep; +import mage.constants.Zone; +import org.junit.Test; +import org.mage.test.serverside.base.CardTestPlayerBase; + +public class ShapeStealerTest extends CardTestPlayerBase { + + private String shapeStealer = "Shape Stealer"; + private String myojinOfCleansingFire = "Myojin of Cleansing Fire"; + + @Test + public void testShapeStealerSingleBlocker() { + addCard(Zone.BATTLEFIELD, playerA, shapeStealer); + addCard(Zone.BATTLEFIELD, playerB, myojinOfCleansingFire); + attack(1, playerA, shapeStealer); + block(1, playerB, myojinOfCleansingFire, shapeStealer); + setStopAt(1, PhaseStep.END_COMBAT); + execute(); + assertDamageReceived(playerA, shapeStealer, 4); + assertPowerToughness(playerA, shapeStealer, 4, 6); + assertDamageReceived(playerB, myojinOfCleansingFire, 4); + } }