コード例 #1
0
ファイル: LogicTests.cs プロジェクト: csabull96/BattleCity
        public void PlayerRespawn_OnlyRespawnsPlayers()
        {
            Wall  wall  = new Wall(0, 0, false);
            Eagle eagle = new Eagle(0, 0);

            wall.Life  = 0;
            eagle.Life = 0;
            wall.PlayerRespawn();
            eagle.PlayerRespawn();
            Assert.That(eagle.Life == 0 && wall.Life == 0);
        }