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