Click here to Skip to main content
Rate this: bad
good
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!
Jon
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 250
1 Jochen Arndt 155
2 PIEBALDconsult 150
3 DamithSL 125
4 Afzaal Ahmad Zeeshan 120
0 OriginalGriff 5,695
1 DamithSL 4,591
2 Maciej Los 4,012
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,190


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 3 Jul 2012
Copyright © CodeProject, 1999-2014
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