ValidationResult.Invalid(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an invalid validation result with the specified error message.
public static Microsoft.Testing.Platform.Extensions.ValidationResult Invalid(string errorMessage);
static member Invalid : string -> Microsoft.Testing.Platform.Extensions.ValidationResult
Public Shared Function Invalid (errorMessage As String) As ValidationResult
Parameters
- errorMessage
- String
The error message.
Returns
An invalid validation result.