added test for seek mechanic

This commit is contained in:
Evan Kranzler 2021-08-06 17:16:35 -04:00
parent 51c054b286
commit 9ba9243db5

View file

@ -0,0 +1,33 @@
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 SeekTest extends CardTestPlayerBase {
private static final String lookout = "Skyshroud Lookout";
private static final String elf = "Cylian Elf";
@Test
public void testSeek() {
addCard(Zone.BATTLEFIELD, playerA, "Forest", 2);
addCard(Zone.HAND, playerA, lookout);
addCard(Zone.LIBRARY, playerA, elf);
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, lookout);
setStrictChooseMode(true);
setStopAt(1, PhaseStep.END_TURN);
execute();
assertAllCommandsUsed();
assertPermanentCount(playerA, lookout, 1);
assertHandCount(playerA, 1);
assertHandCount(playerA, elf, 1);
}
}