Failing test for continuous effects

This commit is contained in:
magenoxx 2012-06-30 09:11:36 +04:00
parent b9139ca4c9
commit 02d41fd65f
2 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,32 @@
package org.mage.test.cards.continuous;
import mage.Constants;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
/**
* @author noxx
*/
public class GoblinBushwhackerTest extends CardTestPlayerBase {
/**
* Tests doesn't work in library and in hand
*/
@Test
public void testDoesntWorkFromHand() {
addCard(Constants.Zone.BATTLEFIELD, playerA, "Plains");
addCard(Constants.Zone.HAND, playerA, "Elite Vanguard");
addCard(Constants.Zone.BATTLEFIELD, playerA, "Goblin Bushwhacker");
addCard(Constants.Zone.LIBRARY, playerA, "Goblin Bushwhacker");
addCard(Constants.Zone.GRAVEYARD, playerA, "Goblin Bushwhacker");
castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Elite Vanguard");
setStopAt(1, Constants.PhaseStep.BEGIN_COMBAT);
execute();
assertPermanentCount(playerA, "Elite Vanguard", 1);
assertPowerToughness(playerA, "Elite Vanguard", 2, 1);
}
}