|
|
@ -22,7 +22,9 @@ class MapTest { |
|
|
|
String expectedMiddle = "dot"; |
|
|
|
String expectedBottomRight = "dot"; |
|
|
|
// act |
|
|
|
Map testMap = new Map(mapTest); |
|
|
|
GameManager gameManager = new GameManager(); |
|
|
|
gameManager.map = new Map(mapTest, gameManager); |
|
|
|
Map testMap = gameManager.map; |
|
|
|
|
|
|
|
String topLeft = testMap.cells[0][2].type; |
|
|
|
String middle = testMap.cells[1][1].type; |
|
|
@ -41,7 +43,9 @@ class MapTest { |
|
|
|
"w..", |
|
|
|
"ee." |
|
|
|
}; |
|
|
|
Map testMap = new Map(mapTest); |
|
|
|
GameManager gameManager = new GameManager(); |
|
|
|
gameManager.map = new Map(mapTest, gameManager); |
|
|
|
Map testMap = gameManager.map; |
|
|
|
Cell expectedTopLeft = testMap.cells[0][2]; |
|
|
|
Cell expectedMiddle = testMap.cells[1][1]; |
|
|
|
Cell expectedBottomRight = testMap.cells[2][0]; |
|
|
|