ValidationResult.InvalidTask(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 a task that represents an invalid validation result with the specified error message.
public static System.Threading.Tasks.Task<Microsoft.Testing.Platform.Extensions.ValidationResult> InvalidTask(string errorMessage);
static member InvalidTask : string -> System.Threading.Tasks.Task<Microsoft.Testing.Platform.Extensions.ValidationResult>
Public Shared Function InvalidTask (errorMessage As String) As Task(Of ValidationResult)
Parameters
- errorMessage
- String
The error message.
Returns
A task that represents an invalid validation result.