public void HoverCommand_ShouldExecuteClientMoveDown() { // arrange moveDownCommand = new MoveDownCommand(DroneClientMock.Object); // act moveDownCommand.Execute(); // assert DroneClientMock.Verify(x => x.MoveDown(), Times.Once); }
public void HoverCommand_ShouldExecuteClientStop() { // arrange stopCommand = new StopCommand(DroneClientMock.Object); // act stopCommand.Execute(); // assert DroneClientMock.Verify(x => x.Stop(), Times.Once); }
public void HoverCommand_ShouldExecuteClientHover() { // arrange hoverCommand = new HoverCommand(DroneClientMock.Object); // act hoverCommand.Execute(); // assert DroneClientMock.Verify(x => x.Hover(), Times.Once); }
public void ConfigureCommand_ShouldExecuteClientConfigure() { // arrange var droneConfiguration = new DroneConfiguration.DroneConfiguration(); configureCommand = new ConfigureCommand(DroneClientMock.Object); // act configureCommand.SetConfiguration(droneConfiguration); configureCommand.Execute(); // assert DroneClientMock.Verify(x => x.Configure(droneConfiguration), Times.Once); }