Anthony Anthony - 5 months ago 36
C# Question

How to "install" Moq framework

I plan on using Moq to mock some interfaces in the unit test codes I've created. I've already downloaded the latest version of Moq.

My question is, how do I "install" it? Where should I place the Moq.dll?

I've tried searching on the internet, but all I can find are samples of how to use Moq, not how to INSTALL it.


There's no need to install it. Just add a reference to the moq.dll in your project.

But of course you can use gacutil to register the library in your global assembly cache.

c:\path> gacutil /i Moq.dll