public void areBlocksReadyToMoveDownTest_with50Blocks() { var towerController = new TowerConroller(); towerController.blockCount = 50; var expected = true; Assert.AreEqual(expected, towerController.areBlocksReadyToMoveDown()); }
public void areBlocksReadyToMoveDownTest_withMinus5Blocks() { var towerController = new TowerConroller(); towerController.blockCount = -5; var expected = false; Assert.AreEqual(expected, towerController.areBlocksReadyToMoveDown()); }
public void changeSkinTest_onePoint() { var windowController = new Window1(); var towerController = new TowerConroller(); var expected = 1; var actual = windowController.changeSkin_forTest(0, towerController); Assert.AreEqual(expected, actual); }
public void isInRangeTest_badPosition() { var towerController = new TowerConroller(); var expected = false; towerController.LastBlockLeftPosition = 0; var actual = towerController.isInRange(150); Assert.AreEqual(expected, actual); }
public void isInRangeTest_perfectPosition() { var towerController = new TowerConroller(); var expected = true; towerController.LastBlockLeftPosition = 100; var actual = towerController.isInRange(100); Assert.AreEqual(expected, actual); }
public void changeSkinTest_doublePoints() { var windowController = new Window1(); var expected = 2; var towerController = new TowerConroller(); towerController.perfectDrop = true; var actual = windowController.changeSkin_forTest(10, towerController); Assert.AreEqual(expected, actual); }