public void Run(Drone drone) { drone.Up(20); drone.Forward(20); drone.RotateClockWise(90); drone.BackFlip(); }
public void ValidBackFlipTest() { var drone = new Drone(_mockDroneCommands.Object); drone.BackFlip(); _mockDroneCommands.Verify(x => x.BackFlip(), Times.Once); }
public void Run(Drone drone) { drone.Up(20); drone.FrontFlip(); drone.BackFlip(); drone.Left(20); drone.Right(20); drone.Reverse(30); }
public void Run(Drone drone) { drone.Forward(45); drone.BackFlip(); drone.Reverse(45); }