Moq: check to see the value of passed in parameters.

/ Published in: C#
Save to your folder(s)

Example 1: I'm verifying that the list that is passed in has 3 attachments. SendMail is run later in the SendEmail method.

Example 2: I'm verifying that the object that is passed into the method has the appropriate values.

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.