Monday, June 29, 2009

Testing without SmtpClient

This is pretty awesome. here’s another way of really unit testing smtpClient code, without having a server running:

 

image

I’m using Isolator to capture and redirect calls from the next instance of SmtpClient, capturing the parameters to a method call on it, and then asserting on the passed in object.

blog comments powered by Disqus