NightSideCMC test for SOI change

This commit is contained in:
drmDev 2016-04-15 06:28:42 -04:00
parent cce5404a92
commit ff351f59db
9 changed files with 51 additions and 10 deletions

View file

@ -43,8 +43,7 @@ public class CastAlternateCastingCostsTest extends CardTestPlayerBaseAI {
* Tests that if a spell has alternate casting costs, this option is also calculated * Tests that if a spell has alternate casting costs, this option is also calculated
*/ */
@Test @Test
@Ignore // AI only gets the cast ability yet, but does always say yes to use evoke @Ignore // AI only gets the cast ability yet, but does always say yes to use evoke by default
// TODO: Get the AI both options to calculate
public void testEvoke() { public void testEvoke() {
// Flying // Flying
// When Mulldrifter enters the battlefield, draw two cards. // When Mulldrifter enters the battlefield, draw two cards.

View file

@ -58,7 +58,8 @@ public class CastCreaturesTest extends CardTestPlayerBaseAI {
* first creature * first creature
*/ */
@Test @Test
@Ignore // Produces sometime error probably because of wrong mana usage of the AI - Not solved yet @Ignore
// TODO: find out why sometimes Produces error probably because of wrong mana usage of the AI - Not solved yet
public void testSimpleCast2() { public void testSimpleCast2() {
addCard(Zone.HAND, playerA, "Silvercoat Lion"); addCard(Zone.HAND, playerA, "Silvercoat Lion");
addCard(Zone.HAND, playerA, "Silvercoat Lion"); addCard(Zone.HAND, playerA, "Silvercoat Lion");

View file

@ -44,7 +44,8 @@ public class CostModificationTest extends CardTestPlayerBaseAI {
* Once played, I am stuck at "Waiting for Computer" forever... * Once played, I am stuck at "Waiting for Computer" forever...
*/ */
@Test @Test
@Ignore // TODO: Check why sometimes Silvercoat Lion is not cast from AI @Ignore
// TODO: Check why sometimes Silvercoat Lion is not cast from AI
public void testFluctuator() { public void testFluctuator() {
addCard(Zone.HAND, playerA, "Silvercoat Lion"); addCard(Zone.HAND, playerA, "Silvercoat Lion");
// Destroy all artifacts, creatures, and enchantments. // Destroy all artifacts, creatures, and enchantments.

View file

@ -199,7 +199,7 @@ public class TargetsAreChosenTest extends CardTestPlayerBaseAI {
* Test that AI counters creature spell * Test that AI counters creature spell
*/ */
@Test @Test
@Ignore // counter spells don't seem to be cast by AI @Ignore // counter spells don't seem to be cast by AI
public void testRewind() { public void testRewind() {
addCard(Zone.BATTLEFIELD, playerA, "Island", 4); addCard(Zone.BATTLEFIELD, playerA, "Island", 4);
// Counter target spell. Untap up to four lands. // Counter target spell. Untap up to four lands.

View file

@ -30,7 +30,6 @@ package org.mage.test.cards.abilities.keywords;
import mage.abilities.keyword.IntimidateAbility; import mage.abilities.keyword.IntimidateAbility;
import mage.constants.PhaseStep; import mage.constants.PhaseStep;
import mage.constants.Zone; import mage.constants.Zone;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase; import org.mage.test.serverside.base.CardTestPlayerBase;
@ -189,7 +188,6 @@ public class LandfallTest extends CardTestPlayerBase {
21:10: Attacker: Inkmoth Nexus 1b5 unblocked 21:10: Attacker: Inkmoth Nexus 1b5 unblocked
*/ */
@Test @Test
@Ignore
public void testGroundswellWithLandfall() { public void testGroundswellWithLandfall() {
// Target creature gets +2/+2 until end of turn. // Target creature gets +2/+2 until end of turn.
//Landfall - If you had a land enter the battlefield under your control this turn, that creature gets +4/+4 until end of turn instead. //Landfall - If you had a land enter the battlefield under your control this turn, that creature gets +4/+4 until end of turn instead.

View file

@ -2,13 +2,13 @@ package org.mage.test.cards.single;
import mage.constants.PhaseStep; import mage.constants.PhaseStep;
import mage.constants.Zone; import mage.constants.Zone;
import org.junit.Ignore; import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase; import org.mage.test.serverside.base.CardTestPlayerBase;
/** /**
* Created by glerman on 23/6/15. * Created by glerman on 23/6/15.
* what is this test???
*/ */
@Ignore @Ignore
public class NornsAnnexTest extends CardTestPlayerBase{ public class NornsAnnexTest extends CardTestPlayerBase{

View file

@ -160,7 +160,7 @@ public class OmniscienceTest extends CardTestPlayerBase {
* working. * working.
*/ */
@Test @Test
@Ignore // targeting of fused/split spells not supported by thestplayer @Ignore // targeting of fused/split spells not supported by testplayer
public void testCastingFusedSpell() { public void testCastingFusedSpell() {
addCard(Zone.BATTLEFIELD, playerA, "Omniscience"); addCard(Zone.BATTLEFIELD, playerA, "Omniscience");
addCard(Zone.BATTLEFIELD, playerA, "Island", 2); addCard(Zone.BATTLEFIELD, playerA, "Island", 2);

View file

@ -0,0 +1,42 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.mage.test.cards.single.soi;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
/**
* New SOI mechanics change requires the night-side CMC to be equal to the day-side CMC
* @author escplan9 (Derek Monturo - dmontur1 at gmail dot com)
*/
public class NightSideCMCTest extends CardTestPlayerBase {
/**
*
**/
@Test
public void insectileAbberationRepealXis1Test() {
addCard(Zone.BATTLEFIELD, playerA, "Insectile Aberration"); // night-side of Delver of Secrets {U}
// Instant - {X}{U}
// Return target nonland permanent with converted mana cost X to its owner's hand. Draw a card.
addCard(Zone.HAND, playerB, "Repeal");
addCard(Zone.BATTLEFIELD, playerB, "Island", 2);
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerB, "Repeal");
setChoice(playerB, "X=1");
addTarget(playerB, "Insectile Aberration");
setStopAt(1, PhaseStep.BEGIN_COMBAT);
execute();
assertGraveyardCount(playerB, "Repeal", 1);
assertPermanentCount(playerA, "Insectile Aberration", 0);
assertHandCount(playerA, "Delver of Secrets", 1); // day-side of Insectile Abberation returned to hand
}
}

View file

@ -46,7 +46,7 @@ public class TargetedTriggeredTest extends CardTestPlayerBase {
*/ */
@Test @Test
@Ignore @Ignore
// this does currently not work in test, because the target event will be fired earlier during tests, // this does not currently work in test, because the target event will be fired earlier during tests,
// so the zone change counter for the fixed target of the counterspell will not work // so the zone change counter for the fixed target of the counterspell will not work
public void testKiraGreatGlassSpinnerFirstSpellTurn() { public void testKiraGreatGlassSpinnerFirstSpellTurn() {
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 1); addCard(Zone.BATTLEFIELD, playerA, "Mountain", 1);