Site Loader
Auckland, New Zealand
Moq is one of the most popular mocking framework for .Net and Moq takes full advantage of .NET Linq expression trees and lambda expressions, which makes it the most productive, type-safe and refactoring-friendly mocking library available. Moq is an open-source and free library which can be downloaded from Github or added to project via Nuget

So what is moq for developers?

Developers can use Moq for Unit testing their methods or classes functionality without disturbing the system.Meaning, Moq can also isolate the actual system and test the abstract methods of the application rather the real implementation itself. This way Moq removes the real dependencies with fake dependencies and test if the real dependency work as expected (otherwise called as isolation) This fake dependencies are achieved by Moq using Castle DynamicProxy .Net library (http://www.castleproject.org/projects/dynamicproxy/)

So what is Moq for Testers?

Does really testers requires Moq in the first place seriously ? Well, the answer is

Yes / No

But it depends on the kind of tester you are. As the growing complexity of programing and application development model in the agile world, testers are no difference from a dev. I seriously consider Moq is not an alien for tester, its yet another tool for testers as well !!! Moq is prevalently used during Integration testing by testers in many companies.

Testers coding Graph

Let’s consider the way testers were and testers are with a quick graph, base on their coding skills and/or requirement in current trend

You can find the complete discussion from the video below Thanks for reading the post and watching the video!!! Please leave your comments and let me know if there is anything I should update in this post. Thanks, Karthik KK

Post Author: Karthik kk

Leave a Reply

Your email address will not be published. Required fields are marked *