MoveDown() public method

public MoveDown ( ) : void
return void
Example #1
0
        public void MoveDownTest()
        {
            Spaceship spaceship = new Spaceship();
            spaceship.Y = 0;

            spaceship.MoveDown();

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

            Assert.AreEqual(300 - spaceship.Height, spaceship.Y);
        }