Tag Archives: Moles

Pex and Moles

Moles are another Visual Studio add-in along with Pex. We already discussed about Pex, how to create Unit test using Pex and Parameterized Unit tests in another article. For more details, please refer http://www.dotnetfunda.com/articles/article1311-method-delegate-using-moles-.aspx

Posted in Pex and Moles | Tagged , | 1 Comment

Exception message: Microsoft.Moles.Framework.Moles.MoleInvalidOperationException: Moles requires tests to be an instrumented process

If you are new to Pex & moles like me, you may encounter this exception while mocking any property. I have mocked one of our Dictionary and received this exception. The cause is missing one attribute on the test method. … Continue reading

Posted in Pex and Moles | Tagged , | Leave a comment