Personal reminder because I keep forgetting this step…
Context:
- Visual studio 2010 SP1
- Moles installed
- Building SharePoint unit tests using behaviors
- Required to create mole assembly based on the systems.dll
- receiving lots of built error including: “System.Net.Moles.SFileWebResponse.Dispose(bool)’: no suitable method found to override”
Try updating the System.moles file to use reflection only:
There I fixed it!
Happy SharePoint unit testing
More info: