• ВНИМАНИЕ! НОВЫЙ АДРЕС САЙТА

    РКН заблокировал текущий домен

    Актуальный адрес сайта всегда указан здесь - EGROUND-ZERKALO.COM

Скачать Mocking with Moq and xUnit - Pluralsight (2020)

bart

bart

PRO
Сообщения
5.330
Лайки
1.758
Mocking with Moq and xUnit
Pluralsight - Jason Roberts

Скачать Mocking with Moq and xUnit - Pluralsight (2020)


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 with Moq and xUnit, 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 learn how to perform behavior/interaction testing to check your classes are interacting correctly with their dependencies. Finally, you'll explore how to setup mock exceptions, mock events, and use additional mocking techniques. 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.

01. Course Overview:
01. Course Overview
02. Getting Started with Mocking and Moq:
01. Introduction
02. An Overview of Mocking
03. Why Use Mock Objects
04. What Is a Unit
05. Fakes, Dummies, Stubs, Mocks, and Test Doubles
06. An Overview of Moq
07. Demo Code Overview
08. Adding a Unit Test Project
09. Writing Initial Tests
10. Introducing a New Dependency
11. Summary
03. Configuring Mocked Methods:
01. Introduction
02. Installing Moq
03. Instantiating and Using a Mock Object
04. Configuring Mock Object Method Return Values
05. Argument Matching in Mocked Methods
06. Understanding Strict and Loose Mocks
07. Strict Mock Example
08. Comparing Strict and Loose Mocks
09. Refactoring the Tests
10. Mocking Methods with Out Parameters
11. Matching ref Arguments with Moq
12. Summary
04. Configuring Mock Object Properties:
01. Introduction
02. Configuring a Mocked Property to Return a Specified Value
03. Getting a Return Value from a Function
04. Auto-mocking Property Hierarchies
05. Specifying Default Value Behavior for Loose Mocks
06. Tracking Changes to Mock Property Values
07. Summary
05. Implementing Behavior Verification Tests:
01. Introduction
02. Behavior Testing and State Based Testing
03. Verifying a Method Was Called
04. Adding a Custom Error Message
05. Verifying a Method Was Not Called
06. Verifying a Method Was Called a Specific Number of Times
07. Verifying a Property Getter Was Called
08. Verifying a Property Setter Was Called
09. Summary
06. Using Additional Moq Mocking Techniques:
01. Introduction
02. Throwing Exceptions from Mock Objects
03. Raising Events from Mock Objects
04. Returning Different Results for Sequential Calls
05. Checking a Mock Method Was Called Multiple Times with Different Values
06. Mocking Members of Concrete Types with Partial Mocks
07. Mocking Virtual Protected Members
08. Improving Mock Setup Readability with LINQ to Mocks
09. Refactoring the Test Class
10. Matching Generic Type Arguments
11. Mocking Async Method Return Values
12. Summary

Материал на английском языке




Продажник:


Скачать:
Скрытое содержимое могут видеть только пользователь группы: PRO
Скрытое содержимое для пользователей: Ferr
 
Сверху Снизу