Unit Testing Mock/Stub definitions in Moq

后端 未结 4 672
终归单人心
终归单人心 2021-02-07 16:12

Any reading or advice I\'ve been given on Unit Testing has always suggested a distinct difference between the definition of a Mock and a Stub. My current understanding of these

4条回答
  •  醉酒成梦
    2021-02-07 16:30

    imho its just that its kind of a silly discussion.

    What matters is that you use the mocks/stubs to assert what you need to in the test, and don't assert what you don't.

提交回复
热议问题