add extra fail condition to test

This commit is contained in:
Evan Kranzler 2022-10-17 20:55:53 -04:00
parent 7173d9584e
commit 569f0dcd1f

View file

@ -47,6 +47,7 @@ public class SerraParagonTest extends CardTestPlayerBase {
setStopAt(1, PhaseStep.END_TURN); setStopAt(1, PhaseStep.END_TURN);
try { try {
execute(); execute();
Assert.fail("Two lands were played");
} catch (Throwable e) { } catch (Throwable e) {
if (!e.getMessage().contains("Can't find ability to activate command: Play Swamp")) { if (!e.getMessage().contains("Can't find ability to activate command: Play Swamp")) {
Assert.fail("Should have had error about not being able to play land, but got:\n" + e.getMessage()); Assert.fail("Should have had error about not being able to play land, but got:\n" + e.getMessage());