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); }
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); }
public void AddCarrierShip() { //Arrange ScoreBoard scoreBoard = new ScoreBoard(); CarrierEnemyShip carrier = (CarrierEnemyShip) ShipFactory.CreateCarrierShip(); //Action scoreBoard.AddPoints(carrier, false); //Assert Assert.AreEqual(1000, scoreBoard.CurrentScore); }
public void AddSmallShip() { //Arrange ScoreBoard scoreBoard = new ScoreBoard(); SmallEnemyShip smallShip = (SmallEnemyShip) ShipFactory.CreateSmallShip(); //Action scoreBoard.AddPoints(smallShip, false); //Assert Assert.AreEqual(200, scoreBoard.CurrentScore); }