What is AutoFixture AutoMoq?

前端 未结 1 1115
慢半拍i
慢半拍i 2021-02-02 06:27

I was looking at nuget and wanted to import moq when I noticed AutoFixture AutoMoq. I see that AutoFixture is to help write TDD faster but I can\'t find any examples of AutoMoq

相关标签:
1条回答
  • 2021-02-02 06:51

    In short, AutoFixture.AutoMoq is an extension that turns AutoFixture into an Auto-Mocking Container using the Moq dynamic mock library.

    There's also a similar extension for AutoFixture that enables auto-mocking with Rhino Mocks.

    This article introduces auto-mocking for AutoFixture: http://blog.ploeh.dk/2010/08/19/AutoFixtureAsAnAutomockingContainer.aspx.

    Here's a couple of follow-ups:

    • http://blog.ploeh.dk/2010/08/25/ChangingTheBehaviorOfAutoFixtureAutomockingWithMoq.aspx
    • http://blog.ploeh.dk/2010/11/13/RhinoMocksbasedAutomockingWithAutoFixture.aspx
    0 讨论(0)
提交回复
热议问题