/// <summary> /// Handles the specified <see cref="ValidationResultCollection"/> with the specified parameters. /// </summary> /// <param name="validationResults">The <see cref="ValidationResultCollection"/> to handle.</param> /// <param name="p">The parameters to use during handling.</param> public void Handle(ValidationResultCollection validationResults, params object[] p) { TestManager.Register(TestItemType.ValidationResult, validationResults, validationResults.IsSucceeded ? TestAction.ValidationSucceeded : TestAction.ValidationFailed, validationResults.ToString()); if (!validationResults.IsSucceeded) { Console.WriteLine(validationResults.ConvertToString(Environment.NewLine)); throw new ValidationFailedException(validationResults); } }