Pex - Documentation
Tutorials
- Code Digging with Pex - Code Understanding and Automatic Testing At Your Fingertips - Tutorial (PDF) A step-by-step tutorial on applying Pex to any piece of code within Visual Studio.
- Moles - Tutorial (PDF) A step by step tutorial on using Moles (for Test Stubs and Detours) and Pex (Automated Test Case Generation).
- Unit Testing SharePoint Services with Pex - Tutorial (PDF) A step by step tutorial on writing isolated parameterized unit tests for SharePoint services using Pex.
- Parameterized Unit Testing with Pex - Tutorial (PDF)
An 70+ pages tutorial that goes through the basics of unit testing, their extension to parameterized unit tests and more advanced topics on Pex.
Reference Manuals
- Parameterized Test Patterns For Effective Testing with Pex - draft (PDF)
Coding patterns for authoring effective parameterized unit tests. - Online Reference Manual for Pex (also available as a single page)
Reference manual containing numerous details about the Pex infrastructure and APIs. - Moles Reference Manual (PDF)
- Extension Writer Handbook (PDF)
Guidance to create code that works well with Pex. This document is targetted for unit test framework and mock framework authors, or users willing to write extensions for Pex.
Slide Decks
Do you want to present Pex to your team? Use our slidedecks to get started!
- Pex Tutorial (tutorial on parameterized unit testing with Pex)
Samples used in Pex Tutorial - Pex Overview (an introduction with technical background)
- Stubs and Moles (stubs and moles inside out)
Videos and Podcasts
- All the videos about Pex on Channel9!
- Channel9: Moles on DateTime.Now
- Channel9: Testing the Reactive Extensions with Pex
- Podcast recorded at TechEd Europe 09
- VTL01: Contracts and Pex: Power Charge Your Assertions and Unit Tests (PDC'09)
- DNR! TV: White box Testing with Pex
- TOOL302 Code Contracts, Pex and CHESS: 3 Tools, One Talk (TechDays'08)
- TOOL404 Pex – Automated White Box Testing for .NET (version 2) (TechDays'08)
- Channel9: Getting Started with Pex in VisualStudio 2008
- Pex - Automated Exploratory Testing for .NET
- Research: Contract Checking and Automated Test Generation with Pex (PDC'08)

It's in the box!
Most of the documentation listed on this page is also bundled in the Pex installer.
More questions?
Try our forums on MSDN.
What about Moles?
Pex comes with Moles, a lightweight Test Stub and Detours framework.



