mirror of
https://github.com/correl/mage.git
synced 2025-03-07 20:53:18 -10:00
Test for issue #88.
This commit is contained in:
parent
b1d6070261
commit
efaeef0cde
1 changed files with 24 additions and 0 deletions
|
@ -66,4 +66,28 @@ public class CloudshiftTest extends CardTestPlayerBase {
|
|||
Assert.assertFalse(clone.getAbilities().contains(LifelinkAbility.getInstance()));
|
||||
Assert.assertFalse(clone.getAbilities().contains(FirstStrikeAbility.getInstance()));
|
||||
}
|
||||
@Test
|
||||
public void testEquipmentDetached() {
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Plains", 4);
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Silvercoat Lion");
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Bonesplitter");
|
||||
|
||||
addCard(Constants.Zone.HAND, playerA, "Cloudshift");
|
||||
|
||||
activateAbility(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Equip {1}", "Silvercoat Lion");
|
||||
castSpell(1, Constants.PhaseStep.POSTCOMBAT_MAIN, playerA, "Cloudshift", "Silvercoat Lion");
|
||||
|
||||
setStopAt(1, Constants.PhaseStep.END_TURN);
|
||||
execute();
|
||||
|
||||
Permanent bonesplitter = getPermanent("Bonesplitter", playerA.getId());
|
||||
Permanent silvercoatLion = getPermanent("Silvercoat Lion", playerA.getId());
|
||||
|
||||
assertLife(playerA, 20);
|
||||
Assert.assertTrue(silvercoatLion.getAttachments().isEmpty());
|
||||
Assert.assertTrue("Bonesplitter must not be connected to Silvercoat Lion",bonesplitter.getAttachedTo() == null);
|
||||
Assert.assertEquals("Silvercoat Lion's power without equipment has to be 2",2, silvercoatLion.getPower().getValue());
|
||||
Assert.assertEquals("Silvercoat Lion's toughness has to be 2",2, silvercoatLion.getToughness().getValue());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue