[NEO] added test for Hotshot Mechanic

This commit is contained in:
Evan Kranzler 2022-02-19 14:48:44 -05:00
parent 82b67a2548
commit 972ad38e85

View file

@ -24,6 +24,8 @@ public class CrewTest extends CardTestPlayerBase {
private static final String plow = "Colossal Plow"; private static final String plow = "Colossal Plow";
private static final String kotori = "Kotori, Pilot Prodigy"; private static final String kotori = "Kotori, Pilot Prodigy";
private static final String crusher = "Irontread Crusher"; private static final String crusher = "Irontread Crusher";
private static final String mechanic = "Hotshot Mechanic";
private static final String express = "Aradara Express";
@Test @Test
public void crewBasicTest() { public void crewBasicTest() {
@ -38,6 +40,7 @@ public class CrewTest extends CardTestPlayerBase {
setStopAt(1, PhaseStep.BEGIN_COMBAT); setStopAt(1, PhaseStep.BEGIN_COMBAT);
execute(); execute();
assertAllCommandsUsed();
assertTappedCount(lion, true, 2); assertTappedCount(lion, true, 2);
assertPowerToughness(playerA, caravan, 5, 5); assertPowerToughness(playerA, caravan, 5, 5);
@ -58,6 +61,7 @@ public class CrewTest extends CardTestPlayerBase {
setStopAt(1, PhaseStep.BEGIN_COMBAT); setStopAt(1, PhaseStep.BEGIN_COMBAT);
execute(); execute();
assertAllCommandsUsed();
assertTappedCount(fanatic, true, 1); assertTappedCount(fanatic, true, 1);
assertPowerToughness(playerA, copter, 3, 3); assertPowerToughness(playerA, copter, 3, 3);
@ -83,6 +87,7 @@ public class CrewTest extends CardTestPlayerBase {
setStopAt(1, PhaseStep.END_TURN); setStopAt(1, PhaseStep.END_TURN);
execute(); execute();
assertAllCommandsUsed();
// Only crewed vehicles have card type creature // Only crewed vehicles have card type creature
assertNotType(copter, CardType.CREATURE); assertNotType(copter, CardType.CREATURE);
@ -97,6 +102,7 @@ public class CrewTest extends CardTestPlayerBase {
setStopAt(1, PhaseStep.POSTCOMBAT_MAIN); setStopAt(1, PhaseStep.POSTCOMBAT_MAIN);
execute(); execute();
assertAllCommandsUsed();
assertTapped(ox, true); assertTapped(ox, true);
assertType(plow, CardType.CREATURE, true); assertType(plow, CardType.CREATURE, true);
@ -111,9 +117,26 @@ public class CrewTest extends CardTestPlayerBase {
setStopAt(1, PhaseStep.END_TURN); setStopAt(1, PhaseStep.END_TURN);
execute(); execute();
assertAllCommandsUsed();
assertTapped(kotori, true); assertTapped(kotori, true);
assertType(crusher, CardType.ARTIFACT, true); assertType(crusher, CardType.ARTIFACT, true);
assertType(crusher, CardType.CREATURE, SubType.VEHICLE); 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);
}
} }