From 972ad38e85b626d7a8eb28ff8afb85efd0d32f26 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sat, 19 Feb 2022 14:48:44 -0500 Subject: [PATCH] [NEO] added test for Hotshot Mechanic --- .../cards/abilities/keywords/CrewTest.java | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/CrewTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/CrewTest.java index f3f0305af6..b9f716f2a6 100644 --- a/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/CrewTest.java +++ b/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/CrewTest.java @@ -24,6 +24,8 @@ public class CrewTest extends CardTestPlayerBase { private static final String plow = "Colossal Plow"; private static final String kotori = "Kotori, Pilot Prodigy"; private static final String crusher = "Irontread Crusher"; + private static final String mechanic = "Hotshot Mechanic"; + private static final String express = "Aradara Express"; @Test public void crewBasicTest() { @@ -38,6 +40,7 @@ public class CrewTest extends CardTestPlayerBase { setStopAt(1, PhaseStep.BEGIN_COMBAT); execute(); + assertAllCommandsUsed(); assertTappedCount(lion, true, 2); assertPowerToughness(playerA, caravan, 5, 5); @@ -58,6 +61,7 @@ public class CrewTest extends CardTestPlayerBase { setStopAt(1, PhaseStep.BEGIN_COMBAT); execute(); + assertAllCommandsUsed(); assertTappedCount(fanatic, true, 1); assertPowerToughness(playerA, copter, 3, 3); @@ -83,6 +87,7 @@ public class CrewTest extends CardTestPlayerBase { setStopAt(1, PhaseStep.END_TURN); execute(); + assertAllCommandsUsed(); // Only crewed vehicles have card type creature assertNotType(copter, CardType.CREATURE); @@ -97,6 +102,7 @@ public class CrewTest extends CardTestPlayerBase { setStopAt(1, PhaseStep.POSTCOMBAT_MAIN); execute(); + assertAllCommandsUsed(); assertTapped(ox, true); assertType(plow, CardType.CREATURE, true); @@ -111,9 +117,26 @@ public class CrewTest extends CardTestPlayerBase { setStopAt(1, PhaseStep.END_TURN); execute(); + assertAllCommandsUsed(); assertTapped(kotori, true); assertType(crusher, CardType.ARTIFACT, true); assertType(crusher, CardType.CREATURE, SubType.VEHICLE); } + + @Test + public void testHotshotMechanic() { + addCard(Zone.BATTLEFIELD, playerA, mechanic); + addCard(Zone.BATTLEFIELD, playerA, express); + + activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Crew 4"); + + setStopAt(1, PhaseStep.END_TURN); + execute(); + assertAllCommandsUsed(); + + assertTapped(mechanic, true); + assertType(express, CardType.ARTIFACT, true); + assertType(express, CardType.CREATURE, SubType.VEHICLE); + } }