mirror of
https://github.com/correl/mage.git
synced 2024-11-25 11:09:53 +00:00
Land test.
This commit is contained in:
parent
1b6722f9b2
commit
a2577c677f
1 changed files with 36 additions and 0 deletions
36
Mage.Tests/src/test/java/org/mage/test/LandTest.java
Normal file
36
Mage.Tests/src/test/java/org/mage/test/LandTest.java
Normal file
|
@ -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();
|
||||||
|
}*/
|
||||||
|
}
|
Loading…
Reference in a new issue