How to Use MOQ With C# For Test Driven Development

Is there a way to shave years off of the trial and error implementing Agile?
Find Out Now.

Dev Mountain Coding Bootcamp

Other Links:
Check out my tutorials, blogs and more at my website

MOQ is a tool in the C# world that makes mocking dependencies a lot easier to do. Unit testing is the art of isolating chunks of code under test to make sure the logic is tested while be isolated from outside failure. In this video I take a sample project and add a unit testing project. We then install MOQ and Fluent Assertions to isolate our code and mock our dependencies. MOQ has a lot more to it than I show in this video, but this video should give you a rough idea of how unit testing works.

If you’re interested in more videos about how to use MOQ, let me know and I’ll work on extending this series to include more.

Related posts: