Background:
I have a large number of commands that satisfy following rules:
- no setters (immutable)
- one constructor
- parameter name matches the name of the property being set (other than casing)
I would like to write a tester that tests following
- given that all arguments are provided I get an instance of the class, and that all properties are set to the value passed.
- given that any one of the reguired parameters is either null, empty etc. based on the type constructor raises argument exception.
Now, I can write this via reflection, hand roll it, no problem, but I was wondering if I could tap into FsCheck generators to generate parameters.
Is this something that I could achieve with FSCheck?