Using Microsoft Fakes to test code that sends email

In the past I used to use Neptune to test any code that sent email. Neptune is still very useful with Web Test but with unit testing I should be able to use Fakes. Below is a typical block of code that uses the SmtpClient class to send an email message.  public static void SendMessage(string ... [More]

How to mole System.dll

Problem: I get “no suitable method found to override” errors when I mole system.dll. Solution: Modify the System.moles file in your project and exclude everything except the types you are trying to mole. Explanation: I was trying to mole the SerialPort class in System.IO.Ports. Afte... [More]