add tests for Doctor's companion

This commit is contained in:
theelk801 2025-07-16 10:20:09 -04:00
parent e3177d9bea
commit 61fe216569

View file

@ -107,6 +107,42 @@ public class CommanderDeckValidationTest extends MageTestPlayerBase {
"Commanders with the 'Choose a Background' ability should be able to have a background as an additional commander");
}
@Test()
public void testDoctorsCompanion() {
DeckTester deckTester = new DeckTester(new Commander());
deckTester.addMaindeck("Plains", 98);
deckTester.addSideboard("The First Doctor", 1);
deckTester.addSideboard("Barbara Wright", 1);
deckTester.validate("You can have two commanders if one is a Time Lord Doctor and the other has 'Doctor's companion'");
}
@Test(expected = AssertionError.class)
public void testDoctorsCompanion2() {
DeckTester deckTester = new DeckTester(new Commander());
deckTester.addMaindeck("Plains", 98);
deckTester.addSideboard("The First Doctor", 1);
deckTester.addSideboard("Isamaru, Hound of Konda", 1);
deckTester.validate("You can't have two commanders if one is a Time Lord Doctor and the other doesn't have 'Doctor's companion'");
}
@Test(expected = AssertionError.class)
public void testDoctorsCompanion3() {
DeckTester deckTester = new DeckTester(new Commander());
deckTester.addMaindeck("Plains", 98);
deckTester.addSideboard("Mistform Ultimus", 1);
deckTester.addSideboard("Barbara Wright", 1);
deckTester.validate(
"You can't have two commanders if one has 'Doctor's companion' " +
"but the other has additional creature types in addition to being a Time Lord Doctor"
);
}
@Test()
public void testVehicles1() {
DeckTester deckTester = new DeckTester(new Commander());