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
359
+
}
360
+
if(response!=null)
361
+
{
362
+
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
363
+
if(response.ResponseError!=null)
364
+
Assert.Fail($"The Test Method of '{methodName}' generate an error with status: {response.RequestStatus} and response: {response.ResponseError.Err}");
365
+
else
366
+
{
367
+
Assert.That(response.ResponseSuccess.Lists.Any(),$"The Response of the request through the method '{methodName}' did not return any spaces!");
368
+
Assert.That(response.ResponseSuccess.Lists.Any(x =>x.Name=="Test Folderless List 212 created from Tests"),$"The Response of the request through the method '{methodName}' returned a list without one with an expected name!");
369
+
}
370
+
}
371
+
else
372
+
{
373
+
Assert.Fail($"The Response of the request through the method '{methodName}' is null!");
374
+
}
375
+
}
376
+
343
377
/// <summary>
344
378
/// Tests of CreateFolderlessList method
345
379
/// </summary>
@@ -851,6 +885,43 @@ public void ShouldCreateListAsync()
Assert.Fail($"The Test Method of '{methodName}' generate exception: {ex.Message}");// Always return false
907
+
}
908
+
if(response!=null)
909
+
{
910
+
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
911
+
if(response.ResponseError!=null)
912
+
Assert.Fail($"The Test Method of '{methodName}' generate an error with status: {response.RequestStatus} and response: {response.ResponseError.Err}");
913
+
else
914
+
{
915
+
Assert.That(response.ResponseSuccess.Lists.Any(),$"The Response of the request through the method '{methodName}' did not return any spaces!");
916
+
Assert.That(response.ResponseSuccess.Lists.Any(x =>x.Name=="Test Folderless List 212 created from Tests"),$"The Response of the request through the method '{methodName}' returned a list without one with an expected name!");
917
+
}
918
+
}
919
+
else
920
+
{
921
+
Assert.Fail($"The Response of the request through the method '{methodName}' is null!");
0 commit comments