Skip to content

Commit

Permalink
Added test case for Cone of Cold bug
Browse files Browse the repository at this point in the history
  • Loading branch information
demilich committed Jun 7, 2016
1 parent cdf4ad9 commit 0377c75
Showing 1 changed file with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -366,5 +366,25 @@ public void testHauntedCreeperHarvestGolem() {
}
}
}


@Test
public void testImpGangBossConeOfCold() {
GameContext context = createContext(HeroClass.MAGE, HeroClass.WARRIOR);
Player player = context.getPlayer1();
Player opponent = context.getPlayer2();

context.endTurn();
Minion firstYeti = playMinionCard(context, opponent, (MinionCard) CardCatalogue.getCardById("minion_chillwind_yeti"));
Minion impGangBoss = playMinionCard(context, opponent, (MinionCard) CardCatalogue.getCardById("minion_imp_gang_boss"));
Minion secondYeti = playMinionCard(context, opponent, (MinionCard) CardCatalogue.getCardById("minion_chillwind_yeti"));
Assert.assertEquals(opponent.getMinions().size(), 3);
context.endTurn();

playCardWithTarget(context, player, CardCatalogue.getCardById("spell_cone_of_cold"), impGangBoss);
Assert.assertEquals(opponent.getMinions().size(), 4);
Assert.assertTrue(firstYeti.hasAttribute(Attribute.FROZEN));
Assert.assertTrue(impGangBoss.hasAttribute(Attribute.FROZEN));
Assert.assertFalse(secondYeti.hasAttribute(Attribute.FROZEN));
}
}

0 comments on commit 0377c75

Please sign in to comment.