public void LeftBoundaryTest() { Spaceship spaceship = new Spaceship(); spaceship.LeftBoundary = 0; spaceship.MoveLeft(); Assert.AreEqual(-spaceship.Speed, spaceship.X); }
public void MoveLeftTest() { Spaceship spaceship = new Spaceship(); spaceship.X = 300; spaceship.MoveLeft(); Assert.AreEqual(300 - spaceship.Speed, spaceship.X); }