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
{{ message }}
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.
You can create a test case wherein you pass null for phoneNumber/shortCode/keyWord and see that a NullObjectReferenceException is thrown instead of the anticipated AfricasTalkingGatewayException
The text was updated successfully, but these errors were encountered:
africastalking.Net/AfricasTalkingCS/AfricasTalkingGateway.cs
Line 398 in 640b195
Hi, this check will fail when a string in
null
since you can't call.Length
on a null string object.I would suggest using String.IsNullOrWhiteSpace(String) to do the check.
You can create a test case wherein you pass null for phoneNumber/shortCode/keyWord and see that a
NullObjectReferenceException
is thrown instead of the anticipatedAfricasTalkingGatewayException
The text was updated successfully, but these errors were encountered: