You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assert.Fail($"The Test Method of '{methodName}' generate exception: {ex.Message}");// Always return false
514
+
}
515
+
if(response!=null)
516
+
{
517
+
Assert.That(response.ResponseSuccess!=null||response.ResponseError!=null,$"The ResponseSuccess and the ResponseError of the GenericResponse of the request through the method '{methodName}' are null!");// Always return false
518
+
if(response.ResponseError!=null)
519
+
Assert.Fail($"The Test Method of '{methodName}' generate an error with status: {response.RequestStatus} and response: {response.ResponseError.Err}");
520
+
else
521
+
{
522
+
Assert.That(response.ResponseSuccess.Id=="te05k",$"The Response of the request through the method '{methodName}' did not return the expected task by ID!");
523
+
Assert.That(response.ResponseSuccess.Name=="test task",$"The Response of the request through the method '{methodName}' did not return the expected task by name!");
524
+
}
525
+
}
526
+
else
527
+
{
528
+
Assert.Fail($"The Response of the request through the method '{methodName}' is null!");
529
+
}
530
+
}
531
+
498
532
/// <summary>
499
533
/// Tests of GetTasks method
500
534
/// </summary>
@@ -1171,6 +1205,43 @@ public void ShouldEditListAsync()
Assert.Fail($"The Test Method of '{methodName}' generate exception: {ex.Message}");// Always return false
1227
+
}
1228
+
if(response!=null)
1229
+
{
1230
+
Assert.That(response.ResponseSuccess!=null||response.ResponseError!=null,$"The ResponseSuccess and the ResponseError of the GenericResponse of the request through the method '{methodName}' are null!");// Always return false
1231
+
if(response.ResponseError!=null)
1232
+
Assert.Fail($"The Test Method of '{methodName}' generate an error with status: {response.RequestStatus} and response: {response.ResponseError.Err}");
1233
+
else
1234
+
{
1235
+
Assert.That(response.ResponseSuccess.Id=="te05k",$"The Response of the request through the method '{methodName}' did not return the expected task by ID!");
1236
+
Assert.That(response.ResponseSuccess.Name=="test task",$"The Response of the request through the method '{methodName}' did not return the expected task by name!");
1237
+
}
1238
+
}
1239
+
else
1240
+
{
1241
+
Assert.Fail($"The Response of the request through the method '{methodName}' is null!");
0 commit comments