public void MoveDownTest() { Spaceship spaceship = new Spaceship(); spaceship.Y = 0; spaceship.MoveDown(); Assert.AreEqual(0 + spaceship.Speed, spaceship.Y); }
public void BottomBoundaryTest() { Spaceship spaceship = new Spaceship(); spaceship.Y = 300 - spaceship.Height; spaceship.BottomBoundary = 300; spaceship.MoveDown(); Assert.AreEqual(300 - spaceship.Height, spaceship.Y); }