Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: UnitTesting
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 12:44pm

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

  Print Answers RSS
0 OriginalGriff 455
1 Sergey Alexandrovich Kryukov 445
2 Maciej Los 290
3 ProgramFOX 275
4 CHill60 225
0 OriginalGriff 550
1 Sergey Alexandrovich Kryukov 470
2 Maciej Los 310
3 ProgramFOX 275
4 Peter Leow 250

Advertise | Privacy | Mobile
Web03 | 2.8.150331.1 | Last Updated 3 Jul 2012
Copyright © CodeProject, 1999-2015
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