Using Microsoft Fakes to test code that sends email 13 February 2015 Donovan-Brown (0) 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 15 December 2011 Donovan-Brown Work (0) 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]