package org.mage.test.clientside;

import org.junit.Test;
import org.mage.test.clientside.base.MageAPI;
import org.mage.test.clientside.bdd.and.And;
import org.mage.test.clientside.bdd.given.Given;
import org.mage.test.clientside.bdd.then.Then;
import org.mage.test.clientside.bdd.when.When;

import static org.mage.test.clientside.base.MageAPI.Owner.*;

public class LandTest extends MageAPI {

    @Test
    public void testPlayingLandInMainPhase() throws Exception {
        Given.I.have.a.card("Mountain");
        And.phase.is("Precombat Main", mine);
        When.I.play("Mountain");
        Then.battlefield.has("Mountain");
        And.graveyards.empty();
    }
}
