Fixed incorrect NewPrespectives test. 3 Mountains caused New Perspectives discard instead of cast.

This commit is contained in:
magenoxx 2017-05-13 17:10:16 +03:00
parent a5c7d55ed6
commit f912ee6213

View file

@ -18,7 +18,9 @@ public class NewPerspectivesTest extends CardTestPlayerBase {
*/ */
private String nPerspectives = "New Perspectives"; private String nPerspectives = "New Perspectives";
// just a basic test for free cycling! /**
* just a basic test for free cycling!
*/
@Test @Test
public void newPerspectives_7Cards_FreeCycling() { public void newPerspectives_7Cards_FreeCycling() {
@ -41,7 +43,9 @@ public class NewPerspectivesTest extends CardTestPlayerBase {
assertHandCount(playerA, 7); // 4 + 3 (new perspectives ETB) (+ 1 - 1) (cycling) assertHandCount(playerA, 7); // 4 + 3 (new perspectives ETB) (+ 1 - 1) (cycling)
} }
// fewer than 7 cards in hand, no free cycle! /**
* Fewer than 7 cards in hand, no free cycle!
*/
@Test @Test
public void newPerspectives_LessThan7Cards_CyclingNotFree() { public void newPerspectives_LessThan7Cards_CyclingNotFree() {
@ -103,7 +107,7 @@ public class NewPerspectivesTest extends CardTestPlayerBase {
removeAllCardsFromHand(playerA); removeAllCardsFromHand(playerA);
addCard(Zone.BATTLEFIELD, playerA, "Island", 6); addCard(Zone.BATTLEFIELD, playerA, "Island", 6);
addCard(Zone.HAND, playerA, nPerspectives, 2); addCard(Zone.HAND, playerA, nPerspectives, 2);
addCard(Zone.HAND, playerA, "Mountain", 3); //this made test buggy: addCard(Zone.HAND, playerA, "Mountain", 3);
addCard(Zone.HAND, playerA, fJet); addCard(Zone.HAND, playerA, fJet);
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, nPerspectives); castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, nPerspectives);
@ -114,8 +118,10 @@ public class NewPerspectivesTest extends CardTestPlayerBase {
setStopAt(3, PhaseStep.END_COMBAT); setStopAt(3, PhaseStep.END_COMBAT);
execute(); execute();
assertGraveyardCount(playerA, nPerspectives, 0); // check it wasn't discarded
assertPermanentCount(playerA, nPerspectives, 2); assertPermanentCount(playerA, nPerspectives, 2);
assertGraveyardCount(playerA, fJet, 1); assertGraveyardCount(playerA, fJet, 1);
assertHandCount(playerA, 11); // 1 (flame jet cycled) + 3 Mountains in hand + 3 (new perspectives ETB) + 1 (draw step) + 3 (2nd perspectives etb) //assertHandCount(playerA, 11); // 1 (flame jet cycled) + 3 Mountains in hand + 3 (new perspectives ETB) + 1 (draw step) + 3 (2nd perspectives etb)
assertHandCount(playerA, 8); // 1 (flame jet cycled) + 3 (new perspectives ETB) + 1 (draw step) + 3 (2nd perspectives etb)
} }
} }