コード例 #1
0
 @Test
 public void testPoorVictimWontHaveNegativeGold() {
   Hero thief = player1.getCharacter();
   Hero victim = player2.getCharacter();
   int initGold = thief.getGold();
   victim.setGold(1);
   card.triggerEffect(player1, player2);
   assertEquals(initGold + 1, thief.getGold());
   assertEquals(0, victim.getGold());
 }