Episode

Mocking Dependencies and Verifying Behavior - Additional Moq Features (8 of 12) | Automated Software Testing

with Leslie Richardson, Robert Green, Phil Japikse

Welcome to the Automated Software Testing series, where you will learn how to increase the efficiency and ROI of your software testing. Moq is a popular framework for encapsulating and abstracting away dependencies. It can also be used for validating the behavior of the system under test. In this episode, Phil Japikse dives into the power and capabilities of Moq.

Chapters

  • 00:00 - Introduction
  • 00:50 - Mocking repetitive function calls
  • 02:05 - Calling mocks in a specific order
  • 03:30 - Discussion of scenarios and usage
  • 09:05 - Mocking a concrete class
  • 13:00 - Mocking events
  • 14:35 - Adding callbacks
  • 15:45 - Wrapup

Connect

Visual Studio