mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
Merge pull request #2969 from Alexsandr0x/Machinate
Implement Machinate + unitTests
This commit is contained in:
commit
63e9ca9266
3 changed files with 119 additions and 0 deletions
|
|
@ -0,0 +1,47 @@
|
|||
package org.mage.test.cards.abilities.other;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
* Created by alexsandro on 14/03/17.
|
||||
*/
|
||||
public class MachinateTest extends CardTestPlayerBase {
|
||||
@Test
|
||||
public void checkDrawCount() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Seat of the Synod", 4);
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Seat of the Synod", 2);
|
||||
|
||||
// Any number just to have cards to draw
|
||||
addCard(Zone.LIBRARY, playerA, "Island", 10);
|
||||
|
||||
addCard(Zone.HAND, playerA, "Machinate", 1);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Machinate");
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertHandCount(playerA, 1);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void checkNoDraw() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Island", 4);
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Seat of the Synod", 2);
|
||||
|
||||
// Any number just to have cards to draw
|
||||
addCard(Zone.LIBRARY, playerA, "Island", 10);
|
||||
|
||||
addCard(Zone.HAND, playerA, "Machinate", 1);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Machinate");
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertHandCount(playerA, 0);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue