Pex - Automated Whitebox Testing for .NET : Exploration of Existing Unit Test

Exploration of Existing Unit Test

Pex supports a special mode where it executes existing unit test suites, i.e. Pex will run an existing unit tests in a similar fashion as the test harness.

Applying Pex on an existing unit test suite has many applications:

Command Line

pex.exe /erm:unittest myunittests.dll

One can also refer to another assembly that contains additional settings. This is particularly useful to specify coverage and user assemblies.


  • MSTest is directly supported
  • Unit Test decorators such as ExpectedException are understood by Pex.

See Also

(c) Microsoft Corporation. All rights reserved. pex Wiki Documentation 0.93.50813.0