Companies Home Search Profile

Mocking with Moq 4 and NUnit

Focused View

Jason Roberts

1:52:54

0 View
  • 01. Course Overview.mp4
    01:14
  • 01. Version Check.mp4
    00:15
  • 02. Introduction.mp4
    03:15
  • 03. Demo Code Overview.mp4
    03:55
  • 04. Writing a Test without Mocks.mp4
    03:39
  • 05. Installing Moq and Creating Your First Mock Object.mp4
    03:22
  • 06. Creating a Second Test.mp4
    02:49
  • 07. An Overview of Mocking.mp4
    01:07
  • 08. Why Mock-.mp4
    02:42
  • 09. What Is a Unit-.mp4
    01:14
  • 10. Fakes, Dummies, Stubs, and Mocks.mp4
    02:26
  • 11. An Overview of Moq.mp4
    00:46
  • 12. Summary.mp4
    01:47
  • 01. Introduction.mp4
    01:15
  • 02. Configuring Mock Object Method Return Values.mp4
    03:58
  • 03. Argument Matching in Mocked Methods.mp4
    04:41
  • 04. Mocking Methods with out Parameters.mp4
    03:14
  • 05. Mocking Methods with ref Parameters.mp4
    03:55
  • 06. Configuring Mock Methods to Return Null.mp4
    02:08
  • 07. Summary.mp4
    01:41
  • 01. Introduction.mp4
    01:42
  • 02. Configuring a Mocked Property to Return a Specified Value.mp4
    05:01
  • 03. Manually Mocking Property Hierarchies.mp4
    02:32
  • 04. Auto Mocking Property Hierarchies.mp4
    03:10
  • 05. Configuring Mock Properties to Track Changes.mp4
    02:09
  • 06. Enabling Change Tracking for All Mocked Properties.mp4
    01:33
  • 07. Summary.mp4
    01:44
  • 01. Introduction.mp4
    01:27
  • 02. An Overview of Behavior Based Testing.mp4
    04:51
  • 03. Verifying a Method Where No Parameters Were Called.mp4
    03:12
  • 04. Verifying a Method Where a Parameter Was Called.mp4
    03:18
  • 05. Verifying a Method Was Called a Specific Number of Times.mp4
    01:22
  • 06. Verifying Property Setter and Getters Were Called.mp4
    03:29
  • 07. Verifying That No Unexpected Calls Were Made.mp4
    01:19
  • 08. Summary.mp4
    01:39
  • 01. Introduction.mp4
    01:33
  • 02. Understanding Strict Mocks.mp4
    02:32
  • 03. Throwing Exceptions from Mock Objects.mp4
    03:18
  • 04. Raising Events from Mock Objects.mp4
    01:32
  • 05. Understanding Partial Mocks.mp4
    02:04
  • 06. Creating Partial Mocks.mp4
    03:27
  • 07. Mocking Nondeterministic Code Such as DateTime.Now.mp4
    01:59
  • 08. Mocking Protected Members of Partial Mocks.mp4
    04:25
  • 09. An Alternative to Using Partial Mocks.mp4
    02:29
  • 10. Summary.mp4
    01:44
  • Description


    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.

    What You'll Learn?


      Writing effective unit tests can be tricky when dependencies between classes make it hard to separate what's being tested from the rest of the system. In this course, Mocking with Moq 4 and NUnit, you will gain the ability to easily isolate parts of your codebase for testing purposes. First, you will learn how to substitute real dependencies for mock objects. Next, you will discover how to configure mocked methods, properties, exceptions, and events. Finally, you will explore how to create behavior-based tests and also how to create partial mocks from existing classes. When you’re finished with this course, you will have the skills and knowledge of mocking with Moq needed to create automated tests that use mock objects.

    More details


    User Reviews
    Rating
    0
    0
    0
    0
    0
    average 0
    Total votes0
    Focused display
    Jason Roberts
    Jason Roberts
    Instructor's Courses
    With over 15 years of experience in both frontend and backend software development, Jason Roberts is a freelance developer, trainer, and author. He holds a Bachelor of Science degree in computing, is the author of several books, and writes at his blog DontCodeTired.com. Jason is an open source contributor and in addition to enterprise software development, he has designed and developed Windows Store and Windows Phone apps.
    Pluralsight, LLC is an American privately held online education company that offers a variety of video training courses for software developers, IT administrators, and creative professionals through its website. Founded in 2004 by Aaron Skonnard, Keith Brown, Fritz Onion, and Bill Williams, the company has its headquarters in Farmington, Utah. As of July 2018, it uses more than 1,400 subject-matter experts as authors, and offers more than 7,000 courses in its catalog. Since first moving its courses online in 2007, the company has expanded, developing a full enterprise platform, and adding skills assessment modules.
    • language english
    • Training sessions 45
    • duration 1:52:54
    • level average
    • English subtitles has
    • Release Date 2024/09/20