From 8402c6afb134883f3a59a2fd78e6e60c47f6514e Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Mon, 27 Jul 2020 12:49:58 +0200 Subject: [PATCH] * Norn' s Annex - Updated test. --- .../test/cards/single/nph/NornsAnnexTest.java | 35 +++++++++++-------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/single/nph/NornsAnnexTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/single/nph/NornsAnnexTest.java index 69276852af..6a69f1c845 100644 --- a/Mage.Tests/src/test/java/org/mage/test/cards/single/nph/NornsAnnexTest.java +++ b/Mage.Tests/src/test/java/org/mage/test/cards/single/nph/NornsAnnexTest.java @@ -2,26 +2,33 @@ package org.mage.test.cards.single.nph; import mage.constants.PhaseStep; import mage.constants.Zone; -import org.junit.Ignore; import org.junit.Test; import org.mage.test.serverside.base.CardTestPlayerBase; /** - * Created by glerman on 23/6/15. - * what is this test??? + * Created by glerman on 23/6/15 */ -@Ignore -public class NornsAnnexTest extends CardTestPlayerBase{ - @Test - @Ignore - public void testNornsAnnex() { - addCard(Zone.BATTLEFIELD, playerA, "Norn's Annex"); - addCard(Zone.BATTLEFIELD, playerB, "Brindle Boar"); - attack(2, playerB, "Brindle Boar", playerA); - setStopAt(2, PhaseStep.END_TURN); - execute(); +public class NornsAnnexTest extends CardTestPlayerBase { + @Test + public void testNornsAnnex() { + setStrictChooseMode(true); + + // {W/P} ({W/P} can be paid with either or 2 life.) + // Creatures can't attack you or a planeswalker you control unless their controller pays {W/P} for each of those creatures. + addCard(Zone.BATTLEFIELD, playerA, "Norn's Annex"); + addCard(Zone.BATTLEFIELD, playerB, "Brindle Boar"); // Creature 2/2 + attack(2, playerB, "Brindle Boar", playerA); + setChoice(playerB, "Yes"); // Pay {W/P} to attack? + setChoice(playerB, "Yes"); // Pay 2 life instead of {W}? + + setStopAt(2, PhaseStep.END_TURN); + execute(); + assertAllCommandsUsed(); - } + assertLife(playerA, 18); + assertLife(playerB, 18); + + } }