Unit Tests generation with Pex using Visual Studio 2010 and C# 4.0
This is the third post of a series about testing tools and techniques using Visual Studio 2010, Team Foundation Server 2010, Microsoft Test Manager 2010, and C# 4.0.
In the first post I showed how Visual Studio allows test driven development and in the second post how to automatically generate test cases from code.
Pex is a tool created by Microsoft Research that integrates into Visual Studio and automatically generates parameterized unit tests from code. In addition, Pex analyzes code under test and automatically generates test cases with high code coverage. In this video you will see how to create a unit test for a Factorial method of a Calculator class using Pex.
You can find more details about Pex, including sample code, in this post.
Written by fmachadopiriz
May 19, 2010 at 12:55 am
Posted in C# 4.0, Visual Studio 2010
Tagged with C# 4.0, Pex, Testing, Unit Tests, Visual Studio 2010
4 Responses
Subscribe to comments with RSS.
-
[…] Unit tests generation with Pex […]
Like Like
-
[…] Unit Tests generation with Pex using Visual Studio 2010 and C# 4.0 […]
Like Like
How to: NUnit vs Visual Studio 2008's Test Projects for Unit Testing? | SevenNet
November 30, 2014 at 3:09 am
-
[…] Unit Tests generation with Pex using Visual Studio 2010 and C# 4.0 […]
Like Like