Merge pull request #3418 from drmDev/master

Soul conduit UT unable to confirm issue #3414
This commit is contained in:
Derek M 2017-05-23 12:51:49 -04:00 committed by GitHub
commit 0e38847c09

View file

@ -0,0 +1,54 @@
package org.mage.test.cards.abilities.other;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import mage.counters.CounterType;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
/**
*
* @author escplan9
*/
public class SoulConduitTest extends CardTestPlayerBase {
/*
Soul Conduit {6}
Artifact
{6}, {T}: Two target players exchange life totals.
*/
private final String soulConduit = "Soul Conduit";
/*
* Reported bug issue #3414: Soul Conduit effect does not do anything to the life totals.
*/
@Test
public void basicTwoPlayerGame_SoulConduitEffect() {
/*
Live Fast {2}{B}
Sorcery
You draw two cards, lose 2 life, and get two energy counters.
*/
String liveFast = "Live Fast";
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 9);
addCard(Zone.BATTLEFIELD, playerA, soulConduit);
addCard(Zone.HAND, playerA, liveFast);
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, liveFast); // to force losing two life
activateAbility(1, PhaseStep.BEGIN_COMBAT, playerA, "{6}");
addTarget(playerA, playerA);
addTarget(playerA, playerB);
setStopAt(1, PhaseStep.END_COMBAT);
execute();
assertGraveyardCount(playerA, liveFast, 1);
assertCounterCount(playerA, CounterType.ENERGY, 2); // from Live Fast
assertCounterCount(playerB, CounterType.ENERGY, 0);
assertTapped(soulConduit, true);
assertLife(playerA, 20);
assertLife(playerB, 18);
}
}