Added: BuildingCard check on price
This commit is contained in:
+16
-3
@@ -12,9 +12,22 @@ class Building13Test {
|
||||
void testClone() {
|
||||
assertThrows(IllegalArgumentException.class, () -> {
|
||||
Building13 b2 = new Building13(0, 15);
|
||||
Building13 b3 = new Building13(-1, 100);
|
||||
Building13 b4 = new Building13(5, -10);
|
||||
Building13 b5 = new Building13(-2, 0);
|
||||
});
|
||||
|
||||
assertThrows(IllegalArgumentException.class, () -> {
|
||||
Building13 b3 = new Building13(-1, 15);
|
||||
});
|
||||
|
||||
assertThrows(IllegalArgumentException.class, () -> {
|
||||
Building13 b4 = new Building13(4, 15);
|
||||
});
|
||||
|
||||
assertThrows(IllegalArgumentException.class, () -> {
|
||||
Building13 b5 = new Building13(2, 0);
|
||||
});
|
||||
|
||||
assertThrows(IllegalArgumentException.class, () -> {
|
||||
Building13 b6 = new Building13(1, -15);
|
||||
});
|
||||
|
||||
Building13 b1 = new Building13(1, 10);
|
||||
|
||||
Reference in New Issue
Block a user