Failing bushido test

This commit is contained in:
magenoxx 2012-06-12 22:03:35 +04:00
parent 7715976c79
commit e435443746

View file

@ -0,0 +1,48 @@
package org.mage.test.cards.abilities.keywords;
import mage.Constants;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
/**
* @author noxx
*/
public class BushidoTest extends CardTestPlayerBase {
/**
* Tests boosting on being blocked
*/
@Test
public void testBeingBlocked() {
addCard(Constants.Zone.BATTLEFIELD, playerA, "Elite Vanguard");
addCard(Constants.Zone.BATTLEFIELD, playerB, "Isao, Enlightened Bushi");
attack(2, playerB, "Isao, Enlightened Bushi");
block(2, playerA, "Elite Vanguard", "Isao, Enlightened Bushi");
setStopAt(2, Constants.PhaseStep.END_COMBAT);
execute();
assertPowerToughness(playerB, "Isao, Enlightened Bushi", 4, 3);
assertPermanentCount(playerA, "Elite Vanguard", 0);
}
/**
* Tests boosting on block
*/
@Test
public void testBlocking() {
addCard(Constants.Zone.BATTLEFIELD, playerA, "Isao, Enlightened Bushi");
addCard(Constants.Zone.BATTLEFIELD, playerB, "Elite Vanguard");
attack(2, playerB, "Elite Vanguard");
block(2, playerA, "Isao, Enlightened Bushi", "Elite Vanguard");
setStopAt(2, Constants.PhaseStep.END_COMBAT);
execute();
assertPowerToughness(playerA, "Isao, Enlightened Bushi", 4, 3);
assertPermanentCount(playerB, "Elite Vanguard", 0);
}
}