diff --git a/Mage.Tests/src/test/java/org/mage/test/LandTest.java b/Mage.Tests/src/test/java/org/mage/test/LandTest.java new file mode 100644 index 0000000000..9535a2d0c4 --- /dev/null +++ b/Mage.Tests/src/test/java/org/mage/test/LandTest.java @@ -0,0 +1,36 @@ +package org.mage.test; + +import org.junit.Test; +import org.mage.test.base.MageAPI; +import org.mage.test.bdd.and.And; +import org.mage.test.bdd.given.Given; +import org.mage.test.bdd.then.Then; +import org.mage.test.bdd.when.When; + +import static org.mage.test.base.MageAPI.Owner.*; + +public class LandTest extends MageAPI { + + @Test + public void testPlayingLandInMainPhase() throws Exception { + //TODO: add test framework callback for synchronization and removing Thread.sleep calls + Given.I.have.a.card("Island"); + And.phase.is("Precombat Main", mine); + When.I.play("Island"); + Then.battlefield.has("Island"); + And.graveyards.empty(); + } + + /*@Test + public void testLightningHelix() throws Exception { + Given.I.have.a.card("Lightning Helix"); + And.battlefield.has("Mountain","Plains"); + And.phase.is("End of Turn", ai); + And.lifes(20,20); + When.I.play("Lightning Helix"); + Then.my.life(23); + And.ai.life(17); + And.my.graveyard.has("Lightning Helix"); + And.ai.graveyard.empty(); + }*/ +}