问题描述
当我注意到nuget并想导入最小起订量时,我注意到了AutoFixture AutoMoq.我看到AutoFixture可以帮助更快地编写TDD,但是我找不到AutoMoq的任何示例以及它与AutoFixture有何不同.
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 and how it is different then AutoFixture.
有人可以将我指向此AutoMoq,以便我可以看到它在做什么.
Can someone point me to this AutoMoq so I can see what it is doing.
推荐答案
简而言之,AutoFixture.AutoMoq是一个扩展,它使 AutoFixture 使用自动模拟容器 Moq 动态模拟库.
In short, AutoFixture.AutoMoq is an extension that turns AutoFixture into an Auto-Mocking Container using the Moq dynamic mock library.
还有一个类似的AutoFixture扩展,它可以通过 Rhino Mocks 进行自动模拟.
There's also a similar extension for AutoFixture that enables auto-mocking with Rhino Mocks.
本文介绍了自动修复自动修复的方法: http://blog.ploeh .dk/2010/08/19/AutoFixtureAsAnAutomockingContainer.aspx .
This article introduces auto-mocking for AutoFixture: http://blog.ploeh.dk/2010/08/19/AutoFixtureAsAnAutomockingContainer.aspx.
以下是一些后续活动:
- http://blog.ploeh.dk/2010/08/25/使用Moq.aspx更改AutoFixtureAutomocking的行为
- http://blog.ploeh.dk/2010/11/13/RhinoMocksbasedAutomockingWithAutoFixture.aspx
- http://blog.ploeh.dk/2010/08/25/ChangingTheBehaviorOfAutoFixtureAutomockingWithMoq.aspx
- http://blog.ploeh.dk/2010/11/13/RhinoMocksbasedAutomockingWithAutoFixture.aspx
这篇关于什么是AutoFixture AutoMoq?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!