|
@ -14,7 +14,7 @@ class CellTest { |
|
|
void cell_triggerItem_505cherryScore() { |
|
|
void cell_triggerItem_505cherryScore() { |
|
|
// arrange |
|
|
// arrange |
|
|
GameManager gameManager = new GameManager(); |
|
|
GameManager gameManager = new GameManager(); |
|
|
Cell cell = gameManager.map.GetCell(new Vector2(0,0)); |
|
|
|
|
|
|
|
|
Cell cell = gameManager.map.getCell(new Vector2(0,0)); |
|
|
cell.type = "cherry"; |
|
|
cell.type = "cherry"; |
|
|
int expectedScore = 505; |
|
|
int expectedScore = 505; |
|
|
// act |
|
|
// act |
|
@ -28,7 +28,7 @@ class CellTest { |
|
|
void cell_triggerItem_10dotScore() { |
|
|
void cell_triggerItem_10dotScore() { |
|
|
// arrange |
|
|
// arrange |
|
|
GameManager gameManager = new GameManager(); |
|
|
GameManager gameManager = new GameManager(); |
|
|
Cell cell = gameManager.map.GetCell(new Vector2(0,0)); |
|
|
|
|
|
|
|
|
Cell cell = gameManager.map.getCell(new Vector2(0,0)); |
|
|
cell.type = "dot"; |
|
|
cell.type = "dot"; |
|
|
int expectedScore = 10; |
|
|
int expectedScore = 10; |
|
|
// act |
|
|
// act |
|
@ -42,7 +42,7 @@ class CellTest { |
|
|
void cell_triggerItem_100pillScore() { |
|
|
void cell_triggerItem_100pillScore() { |
|
|
// arrange |
|
|
// arrange |
|
|
GameManager gameManager = new GameManager(); |
|
|
GameManager gameManager = new GameManager(); |
|
|
Cell cell = gameManager.map.GetCell(new Vector2(0,0)); |
|
|
|
|
|
|
|
|
Cell cell = gameManager.map.getCell(new Vector2(0,0)); |
|
|
cell.type = "pill"; |
|
|
cell.type = "pill"; |
|
|
int expectedScore = 100; |
|
|
int expectedScore = 100; |
|
|
// act |
|
|
// act |
|
@ -56,7 +56,7 @@ class CellTest { |
|
|
void cell_triggerItem_405strawberryScore() { |
|
|
void cell_triggerItem_405strawberryScore() { |
|
|
// arrange |
|
|
// arrange |
|
|
GameManager gameManager = new GameManager(); |
|
|
GameManager gameManager = new GameManager(); |
|
|
Cell cell = gameManager.map.GetCell(new Vector2(0,0)); |
|
|
|
|
|
|
|
|
Cell cell = gameManager.map.getCell(new Vector2(0,0)); |
|
|
cell.type = "strawberry"; |
|
|
cell.type = "strawberry"; |
|
|
int expectedScore = 405; |
|
|
int expectedScore = 405; |
|
|
// act |
|
|
// act |
|
@ -70,7 +70,7 @@ class CellTest { |
|
|
void cell_triggerItem_305orangeScore() { |
|
|
void cell_triggerItem_305orangeScore() { |
|
|
// arrange |
|
|
// arrange |
|
|
GameManager gameManager = new GameManager(); |
|
|
GameManager gameManager = new GameManager(); |
|
|
Cell cell = gameManager.map.GetCell(new Vector2(0,0)); |
|
|
|
|
|
|
|
|
Cell cell = gameManager.map.getCell(new Vector2(0,0)); |
|
|
cell.type = "orange"; |
|
|
cell.type = "orange"; |
|
|
int expectedScore = 305; |
|
|
int expectedScore = 305; |
|
|
// act |
|
|
// act |
|
@ -84,7 +84,7 @@ class CellTest { |
|
|
void cell_triggerItem_205appleScore() { |
|
|
void cell_triggerItem_205appleScore() { |
|
|
// arrange |
|
|
// arrange |
|
|
GameManager gameManager = new GameManager(); |
|
|
GameManager gameManager = new GameManager(); |
|
|
Cell cell = gameManager.map.GetCell(new Vector2(0,0)); |
|
|
|
|
|
|
|
|
Cell cell = gameManager.map.getCell(new Vector2(0,0)); |
|
|
cell.type = "apple"; |
|
|
cell.type = "apple"; |
|
|
int expectedScore = 205; |
|
|
int expectedScore = 205; |
|
|
// act |
|
|
// act |
|
@ -98,7 +98,7 @@ class CellTest { |
|
|
void cell_triggerItem_3crystalMoveSpeed() { |
|
|
void cell_triggerItem_3crystalMoveSpeed() { |
|
|
// arrange |
|
|
// arrange |
|
|
GameManager gameManager = new GameManager(); |
|
|
GameManager gameManager = new GameManager(); |
|
|
Cell cell = gameManager.map.GetCell(new Vector2(0,0)); |
|
|
|
|
|
|
|
|
Cell cell = gameManager.map.getCell(new Vector2(0,0)); |
|
|
cell.type = "crystal"; |
|
|
cell.type = "crystal"; |
|
|
int expectedMoveSpeed = 3; |
|
|
int expectedMoveSpeed = 3; |
|
|
// act |
|
|
// act |
|
|