MoveLeft() 공개 메소드

public MoveLeft ( ) : void
리턴 void
예제 #1
0
        public void LeftBoundaryTest()
        {
            Spaceship spaceship = new Spaceship();
            spaceship.LeftBoundary = 0;
            spaceship.MoveLeft();

            Assert.AreEqual(-spaceship.Speed, spaceship.X);
        }
예제 #2
0
        public void MoveLeftTest()
        {
            Spaceship spaceship = new Spaceship();
            spaceship.X = 300;

            spaceship.MoveLeft();

            Assert.AreEqual(300 - spaceship.Speed, spaceship.X);
        }