Пример #1
0
 @Test
 public void shouldGiveSum0ForBlueAtP2_4() {
   assertEquals(
       "Blue unit at (2,4) should get +0 support",
       +0,
       Utility.getFriendlySupport(game, new Position(2, 4), Player.BLUE));
 }
Пример #2
0
 @Test
 public void shouldGiveSum3ForRedAtP2_2() {
   assertEquals(
       "Red unit at (2,2) should get +3 support",
       +3,
       Utility.getFriendlySupport(game, new Position(2, 2), Player.RED));
 }
Пример #3
0
 @Test
 public void shouldGiveSum1ForBlueAtP5_5() {
   assertEquals(
       "Blue unit at (5,5) should get +1 support",
       +1,
       Utility.getFriendlySupport(game, new Position(5, 5), Player.BLUE));
 }
Пример #4
0
 @Test
 public void shouldGiveSum2ForRedAtP2_4() {
   assertEquals(
       "Red unit at (2,4) should get +2 support",
       +2,
       Utility.getFriendlySupport(game, new Position(2, 4), Player.RED));
 }