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 code coverage.

For more details on Pex, please refer http://www.dotnetfunda.com/articles/article1207-unit-test-creation-using-pex-.aspx

About ambilykk

I am a Technology Evangelist on Microsoft Technologies. I am carrying the passion on Microsoft technologies specifically on web technologies such as ASP .Net and Ajax. My interests also include Azure and Visual Studio. Technology adoption and learning is my key strength and technology sharing is my passion.
This entry was posted in Pex and Moles and tagged , . Bookmark the permalink.

2 Responses to Unit Test creation using Pex

  1. vanisree says:

    hi ambilykk
    i am new to this pex tool. i need to know the coverage report of pex. while generating the pex dynamic report it is showing 21/21(100%). what it is meant for..21 stands for
    waiting for ur reply.. thanks in advance

    • ambilykk says:


      21 indicates the number of test cases generated by the Pex tool. 21/21 indicate all the generated test cases are passed and there is no exception.
      Pex will generate a Code Coverage report, same as the normal Visual Studio Code coverage report.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s