什么是AutoFixture AutoMoq?

cho*_*bo2 41 moq autofixture

当我注意到AutoFixture AutoMoq时,我正在寻找nuget并想要导入moq.我看到AutoFixture是为了帮助更快地编写TDD,但我找不到AutoMoq的任何示例以及它与AutoFixture的不同之处.

有人能指出我这个AutoMoq所以我可以看到它在做什么.

Mar*_*ann 40

简而言之,AutoFixture.AutoMoq是一个扩展,它使用Moq动态模拟库将AutoFixture转换为Auto-Mocking容器.

AutoFixture也有类似的扩展,可以使用Rhino Mocks进行自动模拟.

本文介绍AutoFixture的自动模拟:http://blog.ploeh.dk/2010/08/19/AutoFixtureAsAnAutomockingContainer.aspx .

以下是几个后续行动:

  • 嗯,我还没有得到如何使用autofixture moq. (3认同)
  • @ chobo2:你想做什么? (3认同)
  • 在 AutoFixture 文档中看到这些链接会很好。 (2认同)
  • 另外:https://blog.ploeh.dk/2013/03/11/auto-mocking-container/ 还有:我很确定MarkSeemann就是“ploeh”,AutoFixture的作者:) (2认同)