Is there any way to mock Send(System.Net.Mail.MailMessage message)
method to do nothing when called?
I'm creating SmtpClient using 2 parameters constructor and sending a message like
using(var client = new SmtpClient(host, port)){
client.Send(message);
}
I don't really need to test it, just want to skip it and move on. For testing, I'm using XUnit and Moq.