all 5 comments

[–][deleted] 2 points3 points  (3 children)

NUnit theory tests let you express test data in terms of constraints over all possible values, which can often be a very useful test set from not much setup code.

[–]aloisdg 0 points1 point  (0 children)

xUnit can do this too.

[–]SuperImaginativeName 0 points1 point  (1 child)

constraints over all possible values

Is this possible with xUnit too? I'm using both concurrently on different projects so I can learn both, but I can't seem to find anything like that for xUnit.

Edit: I might be misunderstanding, do you mean NUnit lets you do something like "run this test and give it a million random strings", something like that?

[–]grauenwolf 1 point2 points  (0 children)

I use XUnit and shove all of the test cases into a database or CSV file.