Check Out QuickGenerate

1 Comment »Written on June 30th, 2010 by
Categories: C#, Code Quality, Software Development, testing

One of several interesting things in Mark Meyers’ QuickNet project is the whole input generation thing that you need for property-based testing.  It turns out that those input generators are very usable for far more purposes than just property-based testing, so it’s evolved into its own library.  It can generate object instances of almost any kind, while you can still have fine-grained control over the generation if you want to.  You can use it for simple types, complex objects or even entire object graphs. I wish i had time to write a more in-depth post about this, but for now i’m just gonna point you guys in the right direction, and i hope that you’ll see the value in this :)

The announcement of the first release can be found here, and an example can be found here.  Here’s a little glimpse at the code of one the examples:

quickgenerate

I think that piece of code is a nice illustration of how powerful and flexible this is :)