وب سایت تخصصی شرکت فرین
دسته بندی دوره ها

Mocking with Moq 4 and NUnit

سرفصل های دوره

Writing unit tests is hard when dependencies between classes make it tough to separate what's being tested from the rest of the system. Moq is a mocking library for .NET that makes it easy to create mock objects and make writing unit tests easier.


01. Course Overview
  • 01. Course Overview

  • 02. Getting Started with Moq
  • 01. Version Check
  • 02. Introduction
  • 03. Demo Code Overview
  • 04. Writing a Test without Mocks
  • 05. Installing Moq and Creating Your First Mock Object
  • 06. Creating a Second Test
  • 07. An Overview of Mocking
  • 08. Why Mock-
  • 09. What Is a Unit-
  • 10. Fakes, Dummies, Stubs, and Mocks
  • 11. An Overview of Moq
  • 12. Summary

  • 03. Configuring Mock Method Return Values
  • 01. Introduction
  • 02. Configuring Mock Object Method Return Values
  • 03. Argument Matching in Mocked Methods
  • 04. Mocking Methods with out Parameters
  • 05. Mocking Methods with ref Parameters
  • 06. Configuring Mock Methods to Return Null
  • 07. Summary

  • 04. Working with Mock Properties
  • 01. Introduction
  • 02. Configuring a Mocked Property to Return a Specified Value
  • 03. Manually Mocking Property Hierarchies
  • 04. Auto Mocking Property Hierarchies
  • 05. Configuring Mock Properties to Track Changes
  • 06. Enabling Change Tracking for All Mocked Properties
  • 07. Summary

  • 05. Checking That Mock Methods and Properties Are Used
  • 01. Introduction
  • 02. An Overview of Behavior Based Testing
  • 03. Verifying a Method Where No Parameters Were Called
  • 04. Verifying a Method Where a Parameter Was Called
  • 05. Verifying a Method Was Called a Specific Number of Times
  • 06. Verifying Property Setter and Getters Were Called
  • 07. Verifying That No Unexpected Calls Were Made
  • 08. Summary

  • 06. Using Partial Mocks and Advanced Mocking Techniques
  • 01. Introduction
  • 02. Understanding Strict Mocks
  • 03. Throwing Exceptions from Mock Objects
  • 04. Raising Events from Mock Objects
  • 05. Understanding Partial Mocks
  • 06. Creating Partial Mocks
  • 07. Mocking Nondeterministic Code Such as DateTime.Now
  • 08. Mocking Protected Members of Partial Mocks
  • 09. An Alternative to Using Partial Mocks
  • 10. Summary
  • 139,000 تومان
    بیش از یک محصول به صورت دانلودی میخواهید؟ محصول را به سبد خرید اضافه کنید.
    افزودن به سبد خرید
    خرید دانلودی فوری

    در این روش نیاز به افزودن محصول به سبد خرید و تکمیل اطلاعات نیست و شما پس از وارد کردن ایمیل خود و طی کردن مراحل پرداخت لینک های دریافت محصولات را در ایمیل خود دریافت خواهید کرد.

    ایمیل شما:
    تولید کننده:
    مدرس:
    شناسه: 40162
    حجم: 339 مگابایت
    مدت زمان: 113 دقیقه
    تاریخ انتشار: ۱ آبان ۱۴۰۳
    دسته بندی محصول
    طراحی سایت و خدمات سئو

    139,000 تومان
    افزودن به سبد خرید