mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 22:12:03 -08:00
Fixed card texts: instant or sorcery spell;
This commit is contained in:
parent
a4eecbfb78
commit
207e95e001
14 changed files with 59 additions and 67 deletions
|
|
@ -1,15 +1,17 @@
|
|||
package org.mage.test.cards.single.vis;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.game.permanent.Permanent;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
import static org.hamcrest.core.Is.is;
|
||||
import static org.junit.Assert.*;
|
||||
import java.util.UUID;
|
||||
|
||||
import static mage.constants.Zone.*;
|
||||
import static mage.constants.PhaseStep.*;
|
||||
import static mage.constants.Zone.BATTLEFIELD;
|
||||
import static mage.constants.Zone.HAND;
|
||||
import static org.hamcrest.core.Is.is;
|
||||
import static org.junit.Assert.assertThat;
|
||||
|
||||
public class BroodOfCockroachesTest extends CardTestPlayerBase {
|
||||
|
||||
|
|
@ -19,8 +21,9 @@ public class BroodOfCockroachesTest extends CardTestPlayerBase {
|
|||
private static final String SHOCK = "Shock";
|
||||
|
||||
@Test
|
||||
@Ignore // TODO: fix "put into your graveyard from the battlefield" texts for some cards
|
||||
public void should_display_correct_text() {
|
||||
String expectedText = "When {this} dies, at the beginning of the next end step, you lose 1 life and return Brood of Cockroaches to your hand.";
|
||||
String expectedText = "When {this} is put into your graveyard from the battlefield, at the beginning of the next end step, you lose 1 life and return {this} to your hand.";
|
||||
|
||||
playerA_casts_Brood_of_Cockroaches_at_precombat_main_phase();
|
||||
|
||||
|
|
@ -29,7 +32,6 @@ public class BroodOfCockroachesTest extends CardTestPlayerBase {
|
|||
|
||||
Permanent permanent = getPermanent(BROOD_OF_COCKROACHES, playerA);
|
||||
assertThat(permanent.getAbilities().get(1).toString(), is(expectedText));
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue