Use Setup Arguments with Moq

This tutorial shows how to use Setup parameters in the Returns of a mocked function using Moq. 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.

Video source:

Related Videos: