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. After adding the mole for System.dll I began to get “no suitable method found to override” errors. To resolve this issue I simply double clicked the System.moles file to open it in my IDE. Then I modified the file so that moles were created only for the types under System.IO. Change System.moles from this: <Moles xmlns="http://schemas.microsoft.com/moles/2010/"> <Assembly Name="System" /></Moles> to this: <Moles xmlns="http://schemas.microsoft.com/moles/2010/"> <Assembly Name="System" /> <StubGeneration> <Types> <Clear /> <Add Namespace="System.IO!" /> </Types> </StubGeneration></Moles>
Installing VSTS 2010 Beta 2 Test Controller in Workgroup 23 November 2009 Donovan-Brown Work (0) How to install VSTS 2010 Beta 2 Test Controller in Workgroup. [More]
Writing Custom Conditional Rule for Visual Studio 2010 07 November 2009 Donovan-Brown Work (3) How to write a Custom Conditional Rule for Visual Studio 2010 [More]
Add validation rule to every request. 19 July 2009 Donovan-Brown Work (1) I need to apply the same validation rule to every request of my web test to test for forbidden text. [More]
Neptune (personal SMTP testing server) 20 October 2008 Donovan-Brown Work (12) This post describes a testing tool that allows automated testing of code that sends email. [More]