mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
rename classes (#10383)
This commit is contained in:
parent
d199640fb5
commit
60e488cf05
123 changed files with 356 additions and 378 deletions
|
|
@ -478,7 +478,7 @@ public class CommandersCastTest extends CardTestCommander4PlayersWithAIHelps {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void test_ModalDoubleFacesCard_1() {
|
||||
public void test_ModalDoubleFacedCard_1() {
|
||||
// Player order: A -> D -> C -> B
|
||||
|
||||
// use case:
|
||||
|
|
@ -533,7 +533,7 @@ public class CommandersCastTest extends CardTestCommander4PlayersWithAIHelps {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void test_ModalDoubleFacesCard_CanReturnAfterKillAndCommanderControlCondition() {
|
||||
public void test_ModalDoubleFacedCard_CanReturnAfterKillAndCommanderControlCondition() {
|
||||
// Player order: A -> D -> C -> B
|
||||
|
||||
// Cosima, God of the Voyage, {2}{U}, creature, 2/4
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import mage.abilities.MageSingleton;
|
|||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.AdventureCard;
|
||||
import mage.cards.Card;
|
||||
import mage.cards.ModalDoubleFacesCard;
|
||||
import mage.cards.ModalDoubleFacedCard;
|
||||
import mage.cards.SplitCard;
|
||||
import mage.cards.repository.CardRepository;
|
||||
import mage.constants.PhaseStep;
|
||||
|
|
@ -716,10 +716,10 @@ public class CopySpellTest extends CardTestPlayerBase {
|
|||
|
||||
@Test
|
||||
public void test_SimpleCopy_MDFC() {
|
||||
ModalDoubleFacesCard sourceCard = (ModalDoubleFacesCard) CardRepository.instance.findCard("Agadeem's Awakening").getCard();
|
||||
ModalDoubleFacesCard originalCard = (ModalDoubleFacesCard) CardRepository.instance.findCard("Agadeem's Awakening").getCard();
|
||||
ModalDoubleFacedCard sourceCard = (ModalDoubleFacedCard) CardRepository.instance.findCard("Agadeem's Awakening").getCard();
|
||||
ModalDoubleFacedCard originalCard = (ModalDoubleFacedCard) CardRepository.instance.findCard("Agadeem's Awakening").getCard();
|
||||
prepareZoneAndZCC(originalCard);
|
||||
ModalDoubleFacesCard copiedCard = (ModalDoubleFacesCard) currentGame.copyCard(originalCard, null, playerA.getId());
|
||||
ModalDoubleFacedCard copiedCard = (ModalDoubleFacedCard) currentGame.copyCard(originalCard, null, playerA.getId());
|
||||
// main
|
||||
Assert.assertNotEquals("main - id must be different", originalCard.getId(), copiedCard.getId());
|
||||
Assert.assertEquals("main - rules must be same", originalCard.getRules(), copiedCard.getRules());
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
package org.mage.test.cards.cost.modaldoublefaces;
|
||||
package org.mage.test.cards.cost.modaldoublefaced;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
|
|
@ -8,7 +8,7 @@ import org.mage.test.serverside.base.CardTestCommanderDuelBase;
|
|||
/**
|
||||
* @author JayDi85
|
||||
*/
|
||||
public class ModalDoubleFacesCardsInCommanderTest extends CardTestCommanderDuelBase {
|
||||
public class ModalDoubleFacedCardsInCommanderTest extends CardTestCommanderDuelBase {
|
||||
|
||||
@Test
|
||||
public void test_Triggers_MustAddTriggersOneTimeOnly() {
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
package org.mage.test.cards.cost.modaldoublefaces;
|
||||
package org.mage.test.cards.cost.modaldoublefaced;
|
||||
|
||||
import mage.abilities.keyword.HasteAbility;
|
||||
import mage.cards.Card;
|
||||
import mage.cards.ModalDoubleFacesCard;
|
||||
import mage.cards.ModalDoubleFacedCard;
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.Zone;
|
||||
|
|
@ -18,7 +18,7 @@ import org.mage.test.serverside.base.CardTestPlayerBase;
|
|||
/**
|
||||
* @author JayDi85
|
||||
*/
|
||||
public class ModalDoubleFacesCardsTest extends CardTestPlayerBase {
|
||||
public class ModalDoubleFacedCardsTest extends CardTestPlayerBase {
|
||||
|
||||
@Test
|
||||
public void test_Playable_AsCreature() {
|
||||
|
|
@ -417,8 +417,8 @@ public class ModalDoubleFacesCardsTest extends CardTestPlayerBase {
|
|||
.findFirst()
|
||||
.orElse(null);
|
||||
Assert.assertNotNull(card);
|
||||
Assert.assertTrue("must be mdf card", card instanceof ModalDoubleFacesCard);
|
||||
ModalDoubleFacesCard mdfCard = (ModalDoubleFacesCard) card;
|
||||
Assert.assertTrue("must be mdf card", card instanceof ModalDoubleFacedCard);
|
||||
ModalDoubleFacedCard mdfCard = (ModalDoubleFacedCard) card;
|
||||
Assert.assertEquals("card must be on exile", Zone.EXILED, currentGame.getState().getZone(mdfCard.getId()));
|
||||
Assert.assertEquals("left part must be on exile", Zone.EXILED, currentGame.getState().getZone(mdfCard.getLeftHalfCard().getId()));
|
||||
Assert.assertEquals("right part must be on exile", Zone.EXILED, currentGame.getState().getZone(mdfCard.getRightHalfCard().getId()));
|
||||
|
|
@ -37,7 +37,7 @@ public class ReleaseToTheWindTest extends CardTestPlayerBase {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void test_Exile_ModalDoubleFacesCard() {
|
||||
public void test_Exile_ModalDoubleFacedCard() {
|
||||
// Exile target nonland permanent. For as long as that card remains exiled, its owner may cast it without paying its mana cost.
|
||||
addCard(Zone.HAND, playerA, "Release to the Wind"); // {2}{U}
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Island", 3);
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import mage.abilities.Ability;
|
|||
import mage.abilities.keyword.PartnerWithAbility;
|
||||
import mage.cards.Card;
|
||||
import mage.cards.ExpansionSet;
|
||||
import mage.cards.ModalDoubleFacesCard;
|
||||
import mage.cards.ModalDoubleFacedCard;
|
||||
import mage.cards.repository.CardInfo;
|
||||
import mage.cards.repository.CardScanner;
|
||||
import mage.constants.Rarity;
|
||||
|
|
@ -314,7 +314,7 @@ public class BoosterGenerationTest extends MageTestBase {
|
|||
);
|
||||
assertEquals(
|
||||
"Booster must contain exactly 1 MDFC", 1,
|
||||
booster.stream().filter(ModalDoubleFacesCard.class::isInstance).count()
|
||||
booster.stream().filter(ModalDoubleFacedCard.class::isInstance).count()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
@ -390,7 +390,7 @@ public class BoosterGenerationTest extends MageTestBase {
|
|||
fail("Booster can't have more than three snow lands");
|
||||
}
|
||||
|
||||
long mdfcCount = booster.stream().filter(ModalDoubleFacesCard.class::isInstance).count();
|
||||
long mdfcCount = booster.stream().filter(ModalDoubleFacedCard.class::isInstance).count();
|
||||
assertTrue("Booster can't have more than one MDFC", mdfcCount < 2);
|
||||
|
||||
foundMDFC |= mdfcCount > 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue