2010-10-20 3 views
1

Я только что загрузил последнюю версию исходного кода в Microsoft Enterprise Library. Когда я пытался построить решение в Visual Studio 2010, я получаю следующее сообщение об ошибке:Moq в Microsoft Application Access Block

The type or namespace name 'Moq' could not be found (are you missing a using directive or an assembly reference?)

Что такое Moq и где я могу найти сборки

ответ

2

Moq (pronounced "Mock-you" or just "Mock") is the only mocking library for .NET developed from scratch to take full advantage of .NET 3.5 (i.e. Linq expression trees) and C# 3.0 features (i.e. lambda expressions) that make it the most productive, type-safe and refactoring-friendly mocking library available. And it supports mocking interfaces as well as classes. Its API is extremely simple and straightforward, and doesn't require any prior knowledge or experience with mocking concepts.

http://code.google.com/p/moq/

Сборки являются here. Возможно, вы захотите получить файлы с версией 3.1.

+1

Был файл readme.txt в EntLib50Src \ Lib \ ThirdParty \ Moq, в котором объясняется, как получить сборки MOQ. –

0

Помимо загрузки DLL-файлов с http://code.google.com/p/moq/ вам необходимо добавить их в ссылку на bin вашего приложения в VS.In VS, щелкните правой кнопкой мыши ссылку и выберите Добавить ссылку.