Fix: Building0Test Correctly Handles Buying Of Building Cards + Values Are Now Correct
This commit is contained in:
@@ -10,7 +10,7 @@ import static org.junit.jupiter.api.Assertions.*;
|
||||
class Building0Test {
|
||||
|
||||
@Test
|
||||
@DisplayName("After")
|
||||
@DisplayName("Set Obtained After Effect")
|
||||
void applyEffect() {
|
||||
int Era = 1;
|
||||
// Corretta creazione / esecuzione building card
|
||||
@@ -38,14 +38,13 @@ class Building0Test {
|
||||
}
|
||||
|
||||
@Test
|
||||
@DisplayName("Before")
|
||||
@DisplayName("Set Obtained Before Effect")
|
||||
void applyEffect2() {
|
||||
int Era = 1;
|
||||
Player p = new Player("test");
|
||||
|
||||
assertEquals(0, p.getFoodValue());
|
||||
Artist a = new Artist(Era);
|
||||
//a.insert(p);
|
||||
Builder b = new Builder(Era, 0, 0);
|
||||
Gatherers g = new Gatherers(Era);
|
||||
Hunter h = new Hunter(Era, true);
|
||||
@@ -64,7 +63,6 @@ class Building0Test {
|
||||
p.addFood(b0.getPrice());
|
||||
b0.buy(p);
|
||||
assertEquals(1, b0.numSet);
|
||||
p.buildingCards.add(b0);
|
||||
b0.applyEffect(p);
|
||||
assertEquals(0, p.getFoodValue());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user