Link to home
Start Free TrialLog in
Avatar of satmisha
satmishaFlag for India

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

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;
   }
   
}

Open in new window


appreciate your early response.

Nishant
Avatar of satmisha
satmisha
Flag of India image

ASKER

pls help...
ASKER CERTIFIED SOLUTION
Avatar of ste5an
ste5an
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you.