From fc46c0b288b4bff4fac3f9cc78bc5e6feb022b6a Mon Sep 17 00:00:00 2001 From: dilnu Date: Mon, 3 Feb 2020 18:01:36 -0500 Subject: [PATCH] Turn on strict mode for the test and Add documentation for the cards in the test. --- .../mage/test/cards/copy/CopySpellTest.java | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/copy/CopySpellTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/copy/CopySpellTest.java index 0856e2ee7ec..e43903d8eab 100644 --- a/Mage.Tests/src/test/java/org/mage/test/cards/copy/CopySpellTest.java +++ b/Mage.Tests/src/test/java/org/mage/test/cards/copy/CopySpellTest.java @@ -79,20 +79,32 @@ public class CopySpellTest extends CardTestPlayerBase { @Test public void BonecrusherGiantChangeTargets() { + // 4/3 Creature + // Whenever Bonecrusher Giant becomes the target of a spell, Bonecrusher Giant deals 2 damage to that spell's + // controller. addCard(Zone.BATTLEFIELD, playerA, "Bonecrusher Giant"); + // 2/2 Creature addCard(Zone.BATTLEFIELD, playerA, "Grizzly Bears"); + // 2/1 Creature addCard(Zone.BATTLEFIELD, playerA, "Savannah Lions"); addCard(Zone.BATTLEFIELD, playerA, "Plains"); + // Target creature gets +2/+2 until end of turn. + // Conspire (As you cast this spell, you may tap two untapped creatures you control that share a color with it. + // When you do, copy it and you may choose a new target for the copy.) addCard(Zone.HAND, playerA, "Barkshell Blessing"); castSpell(1, PhaseStep.UPKEEP, playerA, "Barkshell Blessing"); - setChoice(playerA, "Yes"); - setChoice(playerA, "Yes"); addTarget(playerA, "Grizzly Bears"); + setChoice(playerA, "Yes"); + setChoice(playerA, "Grizzly Bears"); + setChoice(playerA, "Savannah Lions"); + setChoice(playerA, "Yes"); addTarget(playerA, "Bonecrusher Giant"); - setStopAt(1, PhaseStep.PRECOMBAT_MAIN); + setStrictChooseMode(true); + setStopAt(1, PhaseStep.END_COMBAT); execute(); + assertAllCommandsUsed(); assertPowerToughness(playerA, "Bonecrusher Giant", 6, 5); assertPowerToughness(playerA, "Grizzly Bears", 4, 4);