Testing without SmtpClient

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



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.