I realized that I had not talked much about how Pex computes the values for the test parameters... the most important part of the tool!
Let's start by getting to wrong ideas out of the way. Parameterized tests are nothing new, they exist in MbUnit, VSTS, XUnit.Net, FIT, etc... so what's different with Pex?
if (i == 123456) throw new Exception(); <---------- random won't find this
[RowTest, Row(0, 1, 1), Row(1, 0, 1)] // data test for the additionvoid AddTest(int a, int b, int result){ Assert.AreEqual(result, a + b); }
Ok, now we've got a better idea of what Pex is not. So how does it work? ....
Page rendered at Thursday, September 02, 2010 3:08:01 PM (Pacific Daylight Time, UTC-07:00)
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.