Rhino Mocks AssertWasCalled (multiple times) on property getter using AAA

前端 未结 6 1322
半阙折子戏
半阙折子戏 2020-12-30 18:20

I have a mocked object that is passed as a constructor argument to another object.

How can I test that a mocked object\'s property has been called? This is code I am

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-30 19:01

    Depending on your version of Rhino you are using, you can use:

    // Call to mock object here
    LastCall.IgnoreArguments().Repeat.Never();
    

提交回复
热议问题