{"id":169746,"date":"2007-02-21T17:06:41","date_gmt":"2007-02-21T17:06:41","guid":{"rendered":"https:\/\/www.microsoft.com\/en-us\/research\/project\/pex-and-moles-isolation-and-white-box-unit-testing-for-net\/"},"modified":"2026-07-13T10:29:39","modified_gmt":"2026-07-13T17:29:39","slug":"pex-and-moles-isolation-and-white-box-unit-testing-for-net","status":"publish","type":"msr-project","link":"https:\/\/www.microsoft.com\/en-us\/research\/project\/pex-and-moles-isolation-and-white-box-unit-testing-for-net\/","title":{"rendered":"Pex and Moles – Isolation and White Box Unit Testing for .NET"},"content":{"rendered":"
\n\t
\n\t\t
\n\t\t\t\t\t<\/div>\n\t\t\n\t\t
\n\t\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\n

Pex and Moles – Isolation and White Box Unit Testing for .NET<\/h1>\n\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\t<\/div>\n<\/section>\n\n\n\n\n\n

Note<\/strong>: The Pex and IntelliTest project has reached its conclusion. These pages are maintained for reference and archival purposes.<\/em><\/p>\n\n\n\n

Pex automatically generates test suites with high code coverage using automated white box analysis. Pex is a Visual Studio add-in for testing .NET Framework applications. Moles supports unit testing by providing isolation by way of detours and stubs. The Moles framework is provided with Pex, or can be installed by itself as a Microsoft Visual Studio add-in.<\/p>\n\n\n\n

IntelliTest in Visual Studio 2015 (opens in new tab)<\/span><\/a> is the evolution of Pex. IntelliTest is a feature integrated in Visual Studio Enterprise 2015. IntelliTest works together with Fakes.<\/p>\n\n\n\n

A Roadmap in Retrospective<\/h2>\n\n\n\n

IntelliTest in Visual Studio 2015 is the next generation of Pex.<\/strong> (opens in new tab)<\/span><\/a><\/p>\n\n\n\n

The Fakes Framework in Visual Studio\u00a02012 and 2013 and 2015 is the next generation of Moles & Stubs.<\/b> (opens in new tab)<\/span><\/a> Fakes is different from Moles, however, so moving from Moles to Fakes will require some modifications to your code. Moles will not be developed further, so we recommend to migrate to Fakes.<\/p>\n\n\n\n

Thanks for your support, The Pex and Moles Team.<\/p>\n\n\n\n\n\n

Pex and Moles<\/h2>\n\n\n\n

Pex and Moles are Visual Studio 2010 Power Tools (opens in new tab)<\/span><\/a> that help Unit Testing .NET applications.<\/strong><\/p>\n\n\n\n