satmisha
asked on
How to make nUnit test case for the static method
Hi Team,
Can anyone help\suggest how one can write a Nunit test case for the following method? I am using C#, Nunit
appreciate your early response.
Nishant
Can anyone help\suggest how one can write a Nunit test case for the following method? I am using C#, Nunit
Private static async Task<ReceiveMessageResponse> GetMessage(IAmazonSQS sqs, string url, int waitTime=0)
{
try
{
return await sqs.ReceiveMessageAsync(new ReceiveMessageRequest
{
QueueUrl = qUrl,
MaxMessage = maxMessage,
WaitTimeInSec= waitTime
});
}
catch(Exception ex)
{
throw ex;
}
}
appreciate your early response.
Nishant
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you.
ASKER