I want to use it to fake System.Net.Mail.SmtpClient in a MS-Test UnitTest. Therefor I added a Fakes Assembmly of System.dll. Then I create a ShimsContext and a StubSmtpClient.
using (ShimsContext.Create())
{
StubSmtpClient client = new StubSmtpClient();
}
But what do I do with it?
The ultimate goal would be to write a Test which expects that the send Method is called with a object of MailMessage.