Guard.IsNotCompletedSuccessfully(Task, String) Method

Definition

Asserts that the input Task instance has not been completed successfully.

public static void IsNotCompletedSuccessfully (System.Threading.Tasks.Task task, string name);
static member IsNotCompletedSuccessfully : System.Threading.Tasks.Task * string -> unit
Public Shared Sub IsNotCompletedSuccessfully (task As Task, name As String)

Parameters

task
Task

The input Task instance to test.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if task has been completed successfully.

Applies to