public void MoveRight() { if (position.X + Width < RightBoundary) position.X += Speed; }
public void MoveRightTest() { Spaceship spaceship = new Spaceship(); spaceship.X = 0; spaceship.MoveRight(); Assert.AreEqual(0 + spaceship.Speed, spaceship.X); }