I have several methods that check for assignablity or interface binding between types. Therefore, I have such signatures as (Type type1, Type type2) .
Pex tries to generate inputs for these parameters and ends up with some type building something or another type (sorry closed VS already), because Type itself is abstract.
I tried to create a factory that selects one of four test types based on the input, and then hopes that Pex will work with the factory to generate different inputs and therefore inject different inputs into my test method.
- typeof (object) and typeof (object)
- typeof (object) and typeof (string)
- etc.
Now he simply complains that Sytem.Type is abstract and cannot be explored. I'm new to Pex, but I don't know how else to generate various inputs for these methods.
Any help?
source share