What is AutoFixture AutoMoq?

MoqAutofixture

Moq Problem Overview


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.

Can someone point me to this AutoMoq so I can see what it is doing.

Moq Solutions


Solution 1 - Moq

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:

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionchobo2View Question on Stackoverflow
Solution 1 - MoqMark SeemannView Answer on Stackoverflow