Guard.IsNotCompletedSuccessfully(Task, 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.
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
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if task
has been completed successfully.