- Home /
Question by
MNNoxMortem · Jul 24, 2017 at 08:20 PM ·
testingtest
Zenject, Moq4 and MonoBehaviours
Is it possible to mock MonoBehaviours with Moq4? Moq4 is included as optionalExtra in Zenject (dependency injection framework) and I would love to use moq but If I am unable to mock MonoBehaviours it's loosing a lot of value in untiy3d.
Anyone got moq4 properly working in unity3d?
Comment
I use Zenject and have $$anonymous$$oq for unit tests and make them work well. What issue did you encounter?
Your answer
![](https://koobas.hobune.stream/wayback/20220612131051im_/https://answers.unity.com/themes/thub/images/avi.jpg)