NMock2 only support mocking interface but not class. If you try to mock class, you will get an error message:

System.TypeLoadException: Could not load type 'MultiInterface1' from assembly 'Mocks

相关文章:

  • 2022-12-23
  • 2021-12-28
  • 2021-09-19
  • 2021-07-15
  • 2021-05-18
  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
猜你喜欢
  • 2021-08-21
  • 2021-06-19
  • 2021-09-17
  • 2021-11-18
  • 2022-01-04
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案