mardi 13 juin 2017

Automoq create object without calling a constructor

Is there a way in Automoq to do what FormatterServices.GetUninitializedObject() does?

I have a class that let's just say is not written in the best way and I just have to get through creating that class's object using Automoq, but I ran into a ctor problem. The ctor does call some database routines that I have to bypass.





Aucun commentaire:

Enregistrer un commentaire