diff options
author | Joffrey BION <joffrey.bion@gmail.com> | 2018-07-10 21:23:24 +0200 |
---|---|---|
committer | Joffrey BION <joffrey.bion@gmail.com> | 2018-07-10 21:23:42 +0200 |
commit | d083b7dddf95a3a4f29109670616bc347ac1976d (patch) | |
tree | df028853e6bc3bf2aca9ff4bd135ec0bc428efd4 /game-engine/src/test/kotlin | |
parent | Kotlin mig: resources package (diff) | |
download | seven-wonders-d083b7dddf95a3a4f29109670616bc347ac1976d.tar.gz seven-wonders-d083b7dddf95a3a4f29109670616bc347ac1976d.tar.bz2 seven-wonders-d083b7dddf95a3a4f29109670616bc347ac1976d.zip |
Kotlin mig: score package
Diffstat (limited to 'game-engine/src/test/kotlin')
-rw-r--r-- | game-engine/src/test/kotlin/org/luxons/sevenwonders/game/boards/BoardTest.kt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/game-engine/src/test/kotlin/org/luxons/sevenwonders/game/boards/BoardTest.kt b/game-engine/src/test/kotlin/org/luxons/sevenwonders/game/boards/BoardTest.kt index 4142206b..526fbced 100644 --- a/game-engine/src/test/kotlin/org/luxons/sevenwonders/game/boards/BoardTest.kt +++ b/game-engine/src/test/kotlin/org/luxons/sevenwonders/game/boards/BoardTest.kt @@ -19,7 +19,7 @@ import org.luxons.sevenwonders.game.effects.RawPointsIncrease import org.luxons.sevenwonders.game.effects.SpecialAbility import org.luxons.sevenwonders.game.effects.SpecialAbilityActivation import org.luxons.sevenwonders.game.resources.ResourceType -import org.luxons.sevenwonders.game.scoring.ScoreCategory +import org.luxons.sevenwonders.game.score.ScoreCategory import org.luxons.sevenwonders.game.test.addCards import org.luxons.sevenwonders.game.test.createResources import org.luxons.sevenwonders.game.test.getDifferentColorFrom @@ -171,7 +171,7 @@ class BoardTest { board.gold = gold val score = board.computePoints(table) - assertEquals(gold / 3, score.getPoints(ScoreCategory.GOLD)) + assertEquals(gold / 3, score.pointsByCategory[ScoreCategory.GOLD]) assertEquals(gold / 3, score.totalPoints) } @@ -186,8 +186,8 @@ class BoardTest { playCardWithEffect(table, 0, Color.BLUE, effect) val score = board.computePoints(table) - assertEquals(gold / 3, score.getPoints(ScoreCategory.GOLD)) - assertEquals(5, score.getPoints(ScoreCategory.CIVIL)) + assertEquals(gold / 3, score.pointsByCategory[ScoreCategory.GOLD]) + assertEquals(5, score.pointsByCategory[ScoreCategory.CIVIL]) assertEquals(5 + gold / 3, score.totalPoints) } |