Land test.

This commit is contained in:
magenoxx 2010-12-20 01:04:08 +03:00
parent 1b6722f9b2
commit a2577c677f

View 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();
}*/
}