MoveUp() public method

public MoveUp ( ) : void
return void
Exemplo n.º 1
0
        public void MoveUpTest()
        {
            Spaceship spaceship = new Spaceship();
            spaceship.Y = 300;

            spaceship.MoveUp();

            Assert.AreEqual(300 - spaceship.Speed, spaceship.Y);
        }
Exemplo n.º 2
0
        public void TopBoundaryTest()
        {
            Spaceship spaceship = new Spaceship();
            spaceship.Y = 0;
            spaceship.TopBoundary = 0;
            spaceship.MoveUp();

            Assert.AreEqual(0, spaceship.Y);
        }