Пример #1
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);
        }
Пример #2
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);
        }
Пример #3
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);
        }
Пример #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);
        }