mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 04:22:01 -08:00
Create HourglassOfTheLostTest.java
This commit is contained in:
parent
a3468e0989
commit
8e2276b10e
1 changed files with 40 additions and 0 deletions
|
|
@ -0,0 +1,40 @@
|
|||
package org.mage.test.cards.single.m3c;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import mage.counters.CounterType;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.player.TestPlayer;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public class HourglassOfTheLostTest extends CardTestPlayerBase {
|
||||
|
||||
/**
|
||||
* {@link mage.cards.h.HourglassOfTheLost HourglassOfTheLost} {2}{U}
|
||||
*/
|
||||
private static final String hourglass = "Hourglass Of The Lost";
|
||||
|
||||
@Test
|
||||
public void test_Simple() {
|
||||
setStrictChooseMode(true);
|
||||
skipInitShuffling();
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerA, hourglass);
|
||||
addCard(Zone.GRAVEYARD, playerA, "Birds of Paradise"); // Tribal Enchantment
|
||||
|
||||
activateManaAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{T}: Add {W}");
|
||||
setStopAt(1, PhaseStep.POSTCOMBAT_MAIN);
|
||||
execute();
|
||||
assertCounterCount(playerA, hourglass, CounterType.TIME,1);
|
||||
activateAbility(3, PhaseStep.PRECOMBAT_MAIN, playerA, "{T},");
|
||||
setStopAt(3, PhaseStep.POSTCOMBAT_MAIN);
|
||||
execute();
|
||||
assertExileCount(playerA, 1);
|
||||
assertGraveyardCount(playerA, 0);
|
||||
assertPermanentCount(playerA, "Birds of Paradise", 1);
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue