Click here to Skip to main content
12,406,592 members (55,838 online)
Rate this:
Please Sign up or sign in to vote.
See more: unit-testing
I've been trying to wrap my head around automated testing in general, and specifically have been digging in to Pex and Moles most recently. I've watched numerous videos from Channel 9 and elsewhere, followed through several tutorials, and I'm trying to start trying out Pex on my code.

In my search for a step-by-step process of how to start using Pex with an existing code base, I see two different directions taken in various tutorials and articles I've found, and I am wondering which method people are using in practice:

Method 1:
Some tutorials start out by right-clicking within a method in their code base, and selecting Pex -> Create Parameterized Unit Tests. After the parameterized unit test (PUT) is created for the method under test, the next step is to right-click within the PUT itself, rather than your actual code base, and run Pex explorations from there.

Method 2:
Others seem to skip that first step of creating a PUT, and simply right-click within a method and select "Run Pex" straight from their code.

I'd love to know which of these methods people are using so I can hopefully start down the more correct path.

Thanks in advance!
Posted 3-Jul-12 11:44am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.160730.1 | Last Updated 3 Jul 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100