Course
Skills Expanded
Mocking With Moq
A look at mocking objects with the Moq framework.
What you'll learn
This prepares you with the fundamental reasons that you would want to use a mocking framework. It also covers, in detail, how to create and use mock objects using the Moq framework as well as advanced usages of that framework.
Table of contents
Introduction
2mins
Using Test Doubles to Improve Unit Tests
4mins
Hand Rolled Mock Objects
16mins
Mocking with Moq
65mins
- Introduction 1m
- The AAA Syntax 1m
- Demo: AAA Syntax 5m
- Simple Mock Verification 1m
- Demo: Simple Mock Verification 7m
- Return Values 1m
- Demo: Return Values 6m
- Demo: Out Parameters 4m
- Demo: Multiple Return Values 3m
- Method/Function Arguments 1m
- Demo: Argument Tracking 4m
- Demo: Arguments and Execution Flow 5m
- Mocking Exceptions 1m
- Demo: Exceptions 3m
- Mocking Properties 1m
- Demo: Mocking Property Setters 2m
- Demo: Mocking Property Getters 4m
- Demo: Mocking Property Hierarchies 4m
- Stubbing Properties 1m
- Demo: Stubbing Properties 4m
- Mocking Events 1m
- Demo: Mocking Events 6m
- Summary 1m
Advanced Mocking with Moq
23mins