From f819340297e0ee43dfa9bc4854091299a3d43aed Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Fri, 28 Aug 2020 17:17:02 +0200 Subject: [PATCH] * Added Entwine Test. --- .../cards/abilities/keywords/EntwineTest.java | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/EntwineTest.java diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/EntwineTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/EntwineTest.java new file mode 100644 index 0000000000..92bc5d8045 --- /dev/null +++ b/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/EntwineTest.java @@ -0,0 +1,47 @@ + +package org.mage.test.cards.abilities.keywords; + +import mage.constants.PhaseStep; +import mage.constants.Zone; +import org.junit.Test; +import org.mage.test.serverside.base.CardTestPlayerBase; + +/** + * + * @author LevelX2 + */ + +public class EntwineTest extends CardTestPlayerBase { + + @Test + public void test_ToothAndNail() { + setStrictChooseMode(true); + + addCard(Zone.LIBRARY, playerA, "Silvercoat Lion", 1); + addCard(Zone.LIBRARY, playerA, "Pillarfield Ox", 1); + + addCard(Zone.BATTLEFIELD, playerA, "Forest", 9); + // Choose one - + // Search your library for up to two creature cards, reveal them, put them into your hand, then shuffle your library; + // or put up to two creature cards from your hand onto the battlefield. + // Entwine {2} + addCard(Zone.HAND, playerA, "Tooth and Nail"); // Sorcery {5}{G}{G} + + + castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Tooth and Nail"); + setChoice(playerA, "Yes"); // Message: Pay Entwine {2} ? + addTarget(playerA, "Silvercoat Lion^Pillarfield Ox"); + + setChoice(playerA, "Silvercoat Lion^Pillarfield Ox"); + + + setStopAt(1, PhaseStep.POSTCOMBAT_MAIN); + execute(); + + assertAllCommandsUsed(); + + assertPermanentCount(playerA, "Silvercoat Lion", 1); + assertPermanentCount(playerA, "Pillarfield Ox", 1); + } +} + \ No newline at end of file