示例#1
0
 public void Run(Drone drone)
 {
     drone.Up(20);
     drone.Forward(20);
     drone.RotateClockWise(90);
     drone.BackFlip();
 }
示例#2
0
        public void ValidBackFlipTest()
        {
            var drone = new Drone(_mockDroneCommands.Object);

            drone.BackFlip();
            _mockDroneCommands.Verify(x => x.BackFlip(), Times.Once);
        }
示例#3
0
 public void Run(Drone drone)
 {
     drone.Up(20);
     drone.FrontFlip();
     drone.BackFlip();
     drone.Left(20);
     drone.Right(20);
     drone.Reverse(30);
 }
示例#4
0
 public void Run(Drone drone)
 {
     drone.Forward(45);
     drone.BackFlip();
     drone.Reverse(45);
 }