Tests: added verify test for wrong mdash usage and fixed related cards (#7457), added tests for (#7460);

This commit is contained in:
Oleg Agafonov 2021-01-29 11:35:13 +04:00
parent bed690cc12
commit 6f2ce47885
4 changed files with 49 additions and 7 deletions

View file

@ -0,0 +1,39 @@
package org.mage.test.cards.single.xln;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
/**
* @author JayDi85
*/
public class TreasureCoveTest extends CardTestPlayerBase {
@Test
public void test_CanDrawAfterSacrifice() {
removeAllCardsFromHand(playerA);
// {T}, Sacrifice a Treasure: Draw a card.
addCard(Zone.BATTLEFIELD, playerA, "Treasure Cove", 1);
//
// saga: I, II Create a Treasure token.
addCard(Zone.BATTLEFIELD, playerA, "Forging the Tyrite Sword", 1);
waitStackResolved(1, PhaseStep.PRECOMBAT_MAIN);
checkHandCount("before", 1, PhaseStep.PRECOMBAT_MAIN, playerA, 0);
checkPermanentCount("before", 1, PhaseStep.PRECOMBAT_MAIN, playerA, "Treasure", 2); // from saga
// sacrifice and draw
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{T}, Sacrifice");
setChoice(playerA, "Treasure");
waitStackResolved(1, PhaseStep.PRECOMBAT_MAIN);
checkHandCount("after", 1, PhaseStep.PRECOMBAT_MAIN, playerA, 1);
checkPermanentCount("after", 1, PhaseStep.PRECOMBAT_MAIN, playerA, "Treasure", 2 - 1);
setStrictChooseMode(true);
setStopAt(1, PhaseStep.END_TURN);
execute();
assertAllCommandsUsed();
}
}