RhinoMocks: Correct way to mock property getter

前端 未结 3 1378
傲寒
傲寒 2021-02-13 21:30

I\'m new to RhinoMocks, and trying to get a grasp on the syntax in addition to what is happening under the hood.

I have a user object, we\'ll call it User, which has a p

3条回答
  •  囚心锁ツ
    2021-02-13 22:07

    _mocks.ReplayAll() will do nothing. It is just because you use SetupResult.For() that does not count. Use Expect.Call() to be sure that your code do everything correct.

提交回复
热议问题