When trying to create a Mock with generic methods, the MockObjectFactory.CreateType() Method throws an exception after having created the Type but before adding the Type to the createdTypes Hashtable. This causes the next call to GetMockedType() to try to create a Type with the same name. This is not allowed, therefore all further CreateType calls fail.
I've attached a simple patch to workaround this problem.
Log in to post a comment.