Category Archives: Pex and 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

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

Unit Test creation using Pex

Pex is one of the Visual Studio add-in that provides a runtime code analysis tool for .NET Framework code. The output of the Pex helps you understand the behavior of the code, and it also builds automated tests with high … Continue reading

Posted in Pex and Moles | Tagged , | 2 Comments