Mocking Static methods using Rhino.Mocks

前端 未结 6 1081
夕颜
夕颜 2020-11-29 07:14

Is it possible to mock a static method using Rhino.Mocks? If Rhino does not support this, is there a pattern or something which would let me accomplish the same?

6条回答
  •  生来不讨喜
    2020-11-29 07:49

    This is the biggest drawback to Rhino Mocks. I don't know that it is even possible for Rhino Mocks to have this implemented without a re-concept of how it does its mocking.

提交回复
热议问题