Exemplo n.º 1
0
        public void AddSmallAsteroid()
        {
            //Arrange
            ScoreBoard scoreBoard = new ScoreBoard();
            Asteroid bigAsteroid = new Asteroid(0,TimeSpan.Zero, Asteroid.Size.SMALL);

            //Action
            scoreBoard.AddPoints(bigAsteroid, false);

            //Assert
            Assert.AreEqual(100, scoreBoard.CurrentScore);
        }
Exemplo n.º 2
0
        public void AddCarrierShip()
        {
            //Arrange
            ScoreBoard scoreBoard = new ScoreBoard();
            CarrierEnemyShip carrier = (CarrierEnemyShip) ShipFactory.CreateCarrierShip();

            //Action
            scoreBoard.AddPoints(carrier, false);

            //Assert
            Assert.AreEqual(1000, scoreBoard.CurrentScore);
        }
Exemplo n.º 3
0
        public void AddMediumAsteroid()
        {
            //Arrange
            ScoreBoard scoreBoard = new ScoreBoard();
            Asteroid bigAsteroid = new Asteroid(0, TimeSpan.Zero, Asteroid.Size.MEDIUM);

            //Action
            scoreBoard.AddPoints(bigAsteroid, false);

            //Assert
            Assert.AreEqual(50, scoreBoard.CurrentScore);
        }
Exemplo n.º 4
0
        public void AddSmallShip()
        {
            //Arrange
            ScoreBoard scoreBoard = new ScoreBoard();
            SmallEnemyShip smallShip = (SmallEnemyShip) ShipFactory.CreateSmallShip();

            //Action
            scoreBoard.AddPoints(smallShip, false);

            //Assert
            Assert.AreEqual(200, scoreBoard.CurrentScore);
        }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GameObjectManager"/> class.
 /// </summary>
 public GameObjectManager()
 {
     scoreBoard = new ScoreBoard();
 }