From 9ba9243db53ca208d2ffab7d7ee6d90ea0c3f9ea Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Fri, 6 Aug 2021 17:16:35 -0400 Subject: [PATCH] added test for seek mechanic --- .../org/mage/test/cards/digital/SeekTest.java | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Mage.Tests/src/test/java/org/mage/test/cards/digital/SeekTest.java diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/digital/SeekTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/digital/SeekTest.java new file mode 100644 index 0000000000..2f27ba0396 --- /dev/null +++ b/Mage.Tests/src/test/java/org/mage/test/cards/digital/SeekTest.java @@ -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); + } +}