Tests: added todo test for AI's playerMustBeAttackedIfAble (#4496)

This commit is contained in:
Oleg Agafonov 2019-04-28 09:25:00 +04:00
parent f238118c87
commit 0bb735b482

View file

@ -0,0 +1,27 @@
package org.mage.test.cards.continuous;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import org.junit.Ignore;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
/**
* @author JayDi85
*/
public class TroveOfTemptationTest extends CardTestPlayerBase {
@Test
@Ignore // TODO: 2019-04-28 - improve and uncomment test after computer player can process playerMustBeAttackedIfAble restriction
public void test_SingleOpponentMustAttack() {
// Each opponent must attack you or a planeswalker you control with at least one creature each combat if able.
addCard(Zone.BATTLEFIELD, playerA, "Trove of Temptation");
addCard(Zone.BATTLEFIELD, playerB, "Balduvian Bears", 1); // 2/2
addCard(Zone.BATTLEFIELD, playerB, "Ashcoat Bear", 1); // 2/2
setStopAt(2, PhaseStep.END_TURN);
setStrictChooseMode(true);
execute();
assertAllCommandsUsed();
}
}