|
12 | 12 | #include "Wonder.h" |
13 | 13 |
|
14 | 14 | //TEST CONSTRUCTORS |
15 | | -TEST(CornerPiece_constructor){ |
16 | | - Coordinate loc = Coordinate(0,0); |
17 | | - GameBoard board({"test board"}); |
18 | | - Player& test_player = board.getPlayer(0); |
19 | | - |
20 | | - CornerPiece test_cp(&board, loc, test_player); |
21 | | - CHECK_EQUAL(loc, test_cp.getLocation()); |
22 | | - CHECK_EQUAL(&board, test_cp.getBoard()); |
23 | | - CHECK_EQUAL(&test_player, test_cp.getOwner()); |
24 | | - CHECK_EQUAL(0, test_cp.getVictoryPoints()); |
25 | | -} |
26 | | - |
27 | 15 | TEST(Settlement_constructor){ |
28 | 16 | Coordinate loc = Coordinate(0,0); |
29 | 17 | GameBoard board({"test board"}); |
@@ -100,15 +88,6 @@ TEST(Wonder_upgrade_city_constructor){ |
100 | 88 | } |
101 | 89 |
|
102 | 90 | //TEST RESOURCE MODIFIERS |
103 | | -TEST(CornerPiece_Resource_Mod){ |
104 | | - Coordinate loc = Coordinate(0,0); |
105 | | - GameBoard board({"test board"}); |
106 | | - Player& test_player = board.getPlayer(0); |
107 | | - |
108 | | - CornerPiece test_cp(&board, loc, test_player); |
109 | | - CHECK_EQUAL(0, test_cp.getResourceModifier()); |
110 | | -} |
111 | | - |
112 | 91 | TEST(Settlement_Resource_Mod){ |
113 | 92 | Coordinate loc = Coordinate(0,0); |
114 | 93 | GameBoard board({"test board"}); |
@@ -137,15 +116,6 @@ TEST(Wonder_Resource_Mod){ |
137 | 116 | } |
138 | 117 |
|
139 | 118 | //TEST VICTORY POINTS |
140 | | -TEST(CornerPiece_Victory_Pts){ |
141 | | - Coordinate loc = Coordinate(0,0); |
142 | | - GameBoard board({"test board"}); |
143 | | - Player& test_player = board.getPlayer(0); |
144 | | - |
145 | | - CornerPiece test_cp(&board, loc, test_player); |
146 | | - CHECK_EQUAL(0, test_cp.getVictoryPoints()); |
147 | | -} |
148 | | - |
149 | 119 | TEST(Settlement_Victory_Pts){ |
150 | 120 | Coordinate loc = Coordinate(0,0); |
151 | 121 | GameBoard board({"test board"}); |
|
0 commit comments