From a2577c677f2368e8ad6ba0961873990f525acf88 Mon Sep 17 00:00:00 2001 From: magenoxx Date: Mon, 20 Dec 2010 01:04:08 +0300 Subject: [PATCH] Land test. --- .../src/test/java/org/mage/test/LandTest.java | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Mage.Tests/src/test/java/org/mage/test/LandTest.java 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(); + }*/ +}