RhinoMocks: Correct way to mock property getter

前端 未结 3 1386
傲寒
傲寒 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:26

    Make sure IsAdministrator is virtual.

    Also, be sure you call _mocks.ReplayAll()

提交回复
热议问题