[J21] Implemented Wingsteed Trainer

This commit is contained in:
Evan Kranzler 2021-08-06 17:18:21 -04:00
parent 9ba9243db5
commit b45514ecfb
4 changed files with 180 additions and 0 deletions

View file

@ -0,0 +1,48 @@
package org.mage.test.cards.digital;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
/**
* @author TheElk801
*/
public class ConjureTest extends CardTestPlayerBase {
private static final String trainer = "Wingsteed Trainer";
private static final String pegasus = "Stormfront Pegasus";
@Test
public void testConjureToHand() {
addCard(Zone.BATTLEFIELD, playerA, "Plains", 4);
addCard(Zone.HAND, playerA, trainer);
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, trainer);
setStrictChooseMode(true);
setStopAt(1, PhaseStep.POSTCOMBAT_MAIN);
execute();
assertAllCommandsUsed();
assertPermanentCount(playerA, trainer, 1);
assertHandCount(playerA, pegasus, 1);
}
@Test
public void testConjureToHandAndCast() {
addCard(Zone.BATTLEFIELD, playerA, "Plains", 6);
addCard(Zone.HAND, playerA, trainer);
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, trainer);
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, pegasus);
setStrictChooseMode(true);
setStopAt(1, PhaseStep.POSTCOMBAT_MAIN);
execute();
assertAllCommandsUsed();
assertPermanentCount(playerA, trainer, 1);
assertPermanentCount(playerA, pegasus, 1);
}
}