mardi 24 mars 2015

Hinder Moq to mock abstract classes without default constructor?

I like to use the DefaultMock.Mock behavior of Moq. Now I have the problem, that in the so mocked object hierarchy one object from an abstract class without a default constructor. When somebody now tries to get this object, I get an exception. Is there a way to work around this behavior?


Aucun commentaire:

Enregistrer un commentaire