Beispiel #1
0
 public void hitPlayerAndDead()
 {
     SpaceInvadersButBetter.core.SpaceShip player = new SpaceInvadersButBetter.core.SpaceShip();
     player.hitAndIsAlive();
     player.hitAndIsAlive();
     Assert.IsTrue(player.hitAndIsAlive() == false);
 }
Beispiel #2
0
 public void ResetPlayerTest()
 {
     SpaceInvadersButBetter.core.SpaceShip player = new SpaceInvadersButBetter.core.SpaceShip();
     player.hitAndIsAlive();
     player.hitAndIsAlive();
     player.reset();
     Assert.IsTrue(player.isAlive());
     Assert.IsTrue(player.getLifes() == 3);
 }
Beispiel #3
0
        public void hitPlayerStillAlive()
        {
            SpaceInvadersButBetter.core.SpaceShip player = new SpaceInvadersButBetter.core.SpaceShip();

            Assert.IsTrue(player.hitAndIsAlive());
        }