Information Technology
Hands on Training icon
Hands On Training
Hands on Training icon

Mocking with Moq 4 and NUnit

Course Cover
compare button icon

Course Features

icon

Duration

112 minutes

icon

Delivery Method

Online

icon

Available on

Downloadable Courses

icon

Accessibility

Desktop, Laptop

icon

Language

English

icon

Subtitles

English

icon

Level

Intermediate

icon

Teaching Type

Self Paced

icon

Video Content

112 minutes

Course Description

Effective unit tests can be difficult to write when there are dependencies between classes. It is hard to distinguish what's being tested and the rest of your system. This course, Mocking using Moq 4 and NUnit will teach you how to isolate codebases for testing purposes. You will first learn how to replace mock objects with real dependencies. Next, you'll learn how to configure mocked properties, methods, exceptions and events. You will also learn how to create behavior-based test cases and how to create partial mocks using existing classes. This course will equip you with the knowledge and skills to mock with Moq in order to create automated tests using mock objects.

Course Overview

projects-img

International Faculty

projects-img

Post Course Interactions

projects-img

Instructor-Moderated Discussions

projects-img

Case Studies, Captstone Projects

Skills You Will Gain

What You Will Learn

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

Course Instructors

Author Image

Jason Roberts

Instructor

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...
Course Cover