public async Task Sets_Error_to_NotFound_when_the_Outputs_ID_does_not_exist() { var removeOutputCommand = new RemoveOutputFromPlaceholderCommand(placeholderInComponents.Id, 999); await removeOutputCommand.Process(virtualStudio); Assert.IsTrue(removeOutputCommand.Error.Type == ErrorType.NotFound); }
public async Task Removes_the_input_from_PlaceholderComponent_in_Components() { var removeOutputCommand = new RemoveOutputFromPlaceholderCommand(placeholderInComponents.Id, placeholderInComponents.Outputs[0].Id); await removeOutputCommand.Process(virtualStudio); Assert.IsNull(removeOutputCommand.Error); Assert.IsTrue(placeholderInComponents.Outputs.Count == 0); }