コード例 #1
0
        public void TestBombagPowerRadius()
        {
            var block   = new GameBlock(1, 1);
            var player  = new PlayerEntity();
            var powerup = new BombRaduisPowerUpEntity();

            player.BombBag    = 1;
            player.BombRadius = 2;

            block.SetEntity(player);
            block.SetPowerUpEntity(powerup);
            block.ApplyPowerUp();

            Assert.AreEqual(4, player.BombRadius, "Expected player bom radius to be increased after power up");
        }
コード例 #2
0
        public void TestBombagPowerUp()
        {
            var block   = new GameBlock(1, 1);
            var player  = new PlayerEntity();
            var powerup = new BombBagPowerUpEntity();

            player.BombBag    = 1;
            player.BombRadius = 1;

            block.SetEntity(player);
            block.SetPowerUpEntity(powerup);
            block.ApplyPowerUp();

            Assert.AreEqual(2, player.BombBag, "Expected player bombag to increase after power up was applied");
        }