How can you mock the methods from a class if you have no control over the class?

后端 未结 0 2008
醉梦人生
醉梦人生 2021-01-22 01:03

I\'m using Xunit and Moq for unit testing. So far I was able to succesfully mock and test methods from interfaces. But how am I supposed to mock and test the methods of a class

相关标签:
回答
  • 消灭零回复
提交回复
热议问题