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

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