Sign in to confirm you’re not a bot
This helps protect our community. Learn more
Mocking Dependencies & Verifying Behavior-Additional Moq Features (8/12) Automated Software Testing
16Likes
1,358Views
2022Nov 30
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:
0:00 - Introduction 0:50 - Mocking repetitive function calls 2:05 - Calling mocks in a specific order 3:30 - Discussion of scenarios and usage 9:05 - Mocking a concrete class 13:00 - Mocking events 14:35 - Adding callbacks 15:45 - Wrapup -Resources: https://github.com/skimedic/SoftwareT... Moq: https://github.com/moq/moq4 Moq quickstart: https://github.com/Moq/moq4/wiki/Quic...
  • Episodes in this series:
Why Automated Software Testing Matters:    • Why Automated Software Testing Matter...   Testing with the xUnit Framework - Overview:    • Testing with the xUnit Framework - Ov...   Testing with the xUnit Framework - Theories and Assertions:    • Testing with the xUnit Framework - Th...   Testing with the xUnit Framework - More Assertions:    • Testing with the xUnit Framework - Mo...   BDD Style Testing with MSpec:    • BDD Style Testing with MSpec (5 of 12...   Mocking Dependencies and Verifying Behavior - Moq Overview:    • Mocking Dependencies and Verifying Be...   Mocking Dependencies and Verifying Behavior - Applying Moq:    • Mocking Dependencies and Verifying Be...   Mocking Dependencies and Verifying Behavior - Additional Moq Features:    • Mocking Dependencies & Verifying Beha...   Running Unit Tests with Azure Pipelines:    • Running Tests with Azure Pipelines (9...   Running Unit Tests with GitHub Actions:    • Running Unit Tests with GitHub Action...   Integration Testing with SQL Server and EF Core:    • Integration Testing with SQL Server a...   Web Application Testing with Microsoft’s Playwright:    • Web Application Testing with Microsof...  

Follow along using the transcript.

Microsoft Visual Studio

334K subscribers