|
| 1 | +/* |
| 2 | + * test_cornerpiece.cpp |
| 3 | + * |
| 4 | + * Created on: Apr 10, 2014 |
| 5 | + * Author: Kyle Grage |
| 6 | + */ |
| 7 | + |
| 8 | +#include "UnitTest++.h" |
| 9 | +#include "CornerPiece.h" |
| 10 | +#include "Settlement.h" |
| 11 | +#include "City.h" |
| 12 | +#include "Wonder.h" |
| 13 | + |
| 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 | +} |
| 22 | + |
| 23 | +TEST(Settlement_constructor){ |
| 24 | + Coordinate loc = Coordinate(0,0); |
| 25 | + GameBoard board({"test board"}); |
| 26 | + Player& test_player = board.getPlayer(0); |
| 27 | + |
| 28 | + Settlement test_cp(&board, loc, test_player); |
| 29 | +} |
| 30 | + |
| 31 | +TEST(City_constructor){ |
| 32 | + Coordinate loc = Coordinate(0,0); |
| 33 | + GameBoard board({"test board"}); |
| 34 | + Player& test_player = board.getPlayer(0); |
| 35 | + |
| 36 | + City test_cp(&board, loc, test_player); |
| 37 | +} |
| 38 | + |
| 39 | +TEST(Wonder_constructor){ |
| 40 | + Coordinate loc = Coordinate(0,0); |
| 41 | + GameBoard board({"test board"}); |
| 42 | + Player& test_player = board.getPlayer(0); |
| 43 | + |
| 44 | + Wonder test_cp(&board, loc, test_player); |
| 45 | +} |
| 46 | + |
| 47 | +TEST(City_upgrade_constructor){ |
| 48 | + |
| 49 | +} |
| 50 | + |
| 51 | +TEST(Wonder_upgrade_constructor){ |
| 52 | + |
| 53 | +} |
| 54 | + |
| 55 | +//TEST RESOURCE MODIFIERS |
| 56 | +TEST(CornerPiece_Resource_Mod){ |
| 57 | + |
| 58 | +} |
| 59 | + |
| 60 | +TEST(Settlement_Resource_Mod){ |
| 61 | + |
| 62 | +} |
| 63 | + |
| 64 | +TEST(City_Resource_Mod){ |
| 65 | + |
| 66 | +} |
| 67 | + |
| 68 | +TEST(Wonder_Resource_Mod){ |
| 69 | + |
| 70 | +} |
| 71 | + |
| 72 | +//TEST VICTORY POINTS |
| 73 | +TEST(CornerPiece_Victory_Pts){ |
| 74 | + |
| 75 | +} |
| 76 | + |
| 77 | +TEST(Settlement_Victory_Pts){ |
| 78 | + |
| 79 | +} |
| 80 | + |
| 81 | +TEST(City_Victory_Pts){ |
| 82 | + |
| 83 | +} |
| 84 | + |
| 85 | +TEST(Wonder_Victory_Pts){ |
| 86 | + |
| 87 | +} |
| 88 | + |
| 89 | + |
0 commit comments