Esempio n. 1
0
        public void areBlocksReadyToMoveDownTest_with50Blocks()
        {
            var towerController = new TowerConroller();

            towerController.blockCount = 50;
            var expected = true;

            Assert.AreEqual(expected, towerController.areBlocksReadyToMoveDown());
        }
Esempio n. 2
0
        public void areBlocksReadyToMoveDownTest_withMinus5Blocks()
        {
            var towerController = new TowerConroller();

            towerController.blockCount = -5;
            var expected = false;

            Assert.AreEqual(expected, towerController.areBlocksReadyToMoveDown());
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        public void isInRangeTest_badPosition()
        {
            var towerController = new TowerConroller();

            var expected = false;

            towerController.LastBlockLeftPosition = 0;
            var actual = towerController.isInRange(150);

            Assert.AreEqual(expected, actual);
        }
Esempio n. 5
0
        public void isInRangeTest_perfectPosition()
        {
            var towerController = new TowerConroller();

            var expected = true;

            towerController.LastBlockLeftPosition = 100;
            var actual = towerController.isInRange(100);

            Assert.AreEqual(expected, actual);
        }
Esempio n. 6
0
        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);
        }