Pex - Automated Whitebox Testing for .NET : How Pex Will Help You

How Pex Will Help You


If you want to ...



Writing Parameterized Unit Tests


When you are ready to write your own parameterized unit tests, we will show you how depending on the code you want to test:

  • Algorithms over primitive data, arrays of primitive data
    • Write parameterized unit tests. more...
  • Algorithms over interfaces
    • Use Pex' automatic mock object generation. more...
  • Algorithms over complex data, e.g. compiler
    • Let Pex generate an abstract representation of the data first, then feed it to the algorithm. more...
    • Let Pex build instances via custom object creation and data invariants, then invoke algorithm. more...
  • Data containers
    • Write parameterized unit tests. more...
    • Let Pex build instances via custom object creation and data invariants, then invoke a method of the container, and check invariants afterwards again. more...
    • Write parameterized unit tests which call different methods of the implementation depending on the parameter values. more...
(c) Microsoft Corporation. All rights reserved. pex Wiki Documentation 0.93.50813.0