CG数据库 >> Mocking in .NET Core Unit Tests with Moq: Getting Started

Mocking in .NET Core Unit Tests with Moq: Getting StartedMP4 | Video: AVC 1280x720 | Audio: AAC 44KHz 2ch | Duration: 2 Hours | 470 MBGenre: eLearning | Language: EnglishMoq is the most popular mocking framework for .

NET.

This course will teach you how to isolate parts of your codebase for easier testing by creating and configuring test-time-only mock versions of dependencies.

Writing unit tests can be difficult, time-consuming, and slow when you can't isolate the classes you want to test from the rest of the system.

In this course, Mocking in .

NET Core Unit Tests with Moq: Getting Started, you'll learn how to create mocks and use them as dependencies to the classes you want to test.

First, you'll discover how to configure mocked methods and properties to return specific values.

Next, you'll cover how to perform behavior/interaction testing.

Finally, you'll explore how to setup mocked exceptions and events.

When you're finished with this course, you'll have the necessary knowledge to use Moq to unit test your classes in isolation by creating and using mock objects.


Mocking in .NET Core Unit Tests with Moq: Getting Started的图片1
Mocking in .NET Core Unit Tests with Moq: Getting Started的图片2

发布日期: 2017-12-04