Moq a base class function from a derived class

后端 未结 2 1791
南笙
南笙 2021-01-12 18:55

I am new to Moq and I just watched the pluralsight video on Moqing so I felt empowered to go and write some tests. I have a Base Class let’s say Sheet which implements an in

2条回答
  •  醉话见心
    2021-01-12 18:58

    Moq is for imitating a dependency or dependencies of your system under test so that you can isolate that from the rest of your application or externalities, not for replacing your system under test. It's not the right tool for what you are trying to do here.

提交回复
热议问题