我最近一直在进行单元测试,并且使用MOQ框架和MS Test成功地模拟了各种场景.我知道我们不能测试私有方法,但我想知道我们是否可以使用MOQ模拟静态方法.
c# unit-testing moq mocking
c# ×1
mocking ×1
moq ×1
unit-testing ×1