Fix: Building13Test

This commit is contained in:
MatteoPellegrino05
2026-03-20 18:46:53 +01:00
parent 60470f0985
commit 3e23bf1616
@@ -47,4 +47,21 @@ class Building13Test {
b1.applyEffect(p1);
assertEquals(35, p1.getPrestigeValue());
}
@Test
void applyEffectException() {
assertThrows(IllegalArgumentException.class, () -> {
Building13 b13 = new Building13(1, 10);
Player p = new Player("test");
b13.applyEffect(p);
});
}
@Test
void applyEffectMultiplePlayerException() {
Building13 b13 = new Building13(1, 10);
Player p1 = new Player("test1");
Player p2 = new Player("test2");
b13.buy(p1);
assertFalse(b13.buy(p2));
}
}