MoveDown() 공개 메소드

public MoveDown ( ) : void
리턴 void
예제 #1
0
        public void MoveDownTest()
        {
            Spaceship spaceship = new Spaceship();
            spaceship.Y = 0;

            spaceship.MoveDown();

            Assert.AreEqual(0 + spaceship.Speed, spaceship.Y);
        }
예제 #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);
        }