mirror of
https://github.com/correl/mage.git
synced 2025-03-07 20:53:18 -10:00
Failing bushido test
This commit is contained in:
parent
7715976c79
commit
e435443746
1 changed files with 48 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue