Added surge test.

This commit is contained in:
LevelX2 2016-01-15 23:33:36 +01:00
parent 56485d7ee6
commit c2b91bfd61
2 changed files with 29 additions and 2 deletions

View file

@ -63,8 +63,9 @@ public class ContainmentMembrane extends CardImpl {
// Enchanted creature doesn't untap during its controller's untap step.
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new DontUntapInControllersUntapStepEnchantedEffect()));
// Surge {U}
addAbility(new SurgeAbility(this, "{U}")); }
// Surge {U} (You may cast a spell for its surge cost if you or a teammate have cast another spell in the same turn.)
addAbility(new SurgeAbility(this, "{U}"));
}
public ContainmentMembrane(final ContainmentMembrane card) {
super(card);

View file

@ -110,4 +110,30 @@ public class SurgeTest extends CardTestPlayerBase {
assertLife(playerB, 14);
}
@Test
public void testContainmentMembrane() {
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 1);
addCard(Zone.BATTLEFIELD, playerA, "Island", 1);
// Enchant creature
// Enchanted creature doesn't untap during its controller's untap step.
// Surge {U} (You may cast a spell for its surge cost if you or a teammate have cast another spell in the same turn.)
addCard(Zone.HAND, playerA, "Containment Membrane"); // {2}{U}
addCard(Zone.HAND, playerA, "Lightning Bolt");
addCard(Zone.BATTLEFIELD, playerB, "Silvercoat Lion", 1, true);
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Lightning Bolt", playerB);
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Containment Membrane", "Silvercoat Lion");
setStopAt(2, PhaseStep.PRECOMBAT_MAIN);
execute();
assertLife(playerB, 17);
assertGraveyardCount(playerA, "Lightning Bolt", 1);
assertPermanentCount(playerA, "Containment Membrane", 1);
assertTapped("Silvercoat Lion", true);
}
}