Udemy
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
Development
Web Development Data Science Mobile Development Programming Languages Game Development Database Design & Development Software Testing Software Engineering Development Tools No-Code Development
Business
Entrepreneurship Communications Management Sales Business Strategy Operations Project Management Business Law Business Analytics & Intelligence Human Resources Industry E-Commerce Media Real Estate Other Business
Finance & Accounting
Accounting & Bookkeeping Compliance Cryptocurrency & Blockchain Economics Finance Finance Cert & Exam Prep Financial Modeling & Analysis Investing & Trading Money Management Tools Taxes Other Finance & Accounting
IT & Software
IT Certification Network & Security Hardware Operating Systems Other IT & Software
Office Productivity
Microsoft Apple Google SAP Oracle Other Office Productivity
Personal Development
Personal Transformation Personal Productivity Leadership Career Development Parenting & Relationships Happiness Esoteric Practices Religion & Spirituality Personal Brand Building Creativity Influence Self Esteem & Confidence Stress Management Memory & Study Skills Motivation Other Personal Development
Design
Web Design Graphic Design & Illustration Design Tools User Experience Design Game Design Design Thinking 3D & Animation Fashion Design Architectural Design Interior Design Other Design
Marketing
Digital Marketing Search Engine Optimization Social Media Marketing Branding Marketing Fundamentals Marketing Analytics & Automation Public Relations Advertising Video & Mobile Marketing Content Marketing Growth Hacking Affiliate Marketing Product Marketing Other Marketing
Lifestyle
Arts & Crafts Beauty & Makeup Esoteric Practices Food & Beverage Gaming Home Improvement Pet Care & Training Travel Other Lifestyle
Photography & Video
Digital Photography Photography Portrait Photography Photography Tools Commercial Photography Video Design Other Photography & Video
Health & Fitness
Fitness General Health Sports Nutrition Yoga Mental Health Dieting Self Defense Safety & First Aid Dance Meditation Other Health & Fitness
Music
Instruments Music Production Music Fundamentals Vocal Music Techniques Music Software Other Music
Teaching & Academics
Engineering Humanities Math Science Online Education Social Science Language Teacher Training Test Prep Other Teaching & Academics
AWS Certification Microsoft Certification AWS Certified Solutions Architect - Associate AWS Certified Cloud Practitioner CompTIA A+ Cisco CCNA CompTIA Security+ Amazon AWS AWS Certified Developer - Associate
Graphic Design Photoshop Adobe Illustrator Drawing Digital Painting InDesign Character Design Canva Figure Drawing
Life Coach Training Neuro-Linguistic Programming Mindfulness Personal Development Meditation Personal Transformation Life Purpose Emotional Intelligence Neuroscience
Web Development JavaScript React CSS Angular PHP WordPress Node.Js Python
Google Flutter Android Development iOS Development Swift React Native Dart Programming Language Mobile Development Kotlin SwiftUI
Digital Marketing Google Ads (Adwords) Social Media Marketing Google Ads (AdWords) Certification Marketing Strategy Internet Marketing YouTube Marketing Email Marketing Retargeting
SQL Microsoft Power BI Tableau Business Analysis Business Intelligence MySQL Data Analysis Data Modeling Big Data
Business Fundamentals Entrepreneurship Fundamentals Business Strategy Online Business Business Plan Startup Freelancing Blogging Home Business
Unity Game Development Fundamentals Unreal Engine C# 3D Game Development C++ 2D Game Development Unreal Engine Blueprints Blender
30-Day Money-Back Guarantee
Development Software Engineering C#

Master .NET and C# Unit Testing with NUnit and Moq

Become an expert in unit testing with NUnit, Moq, dotMemoryUnit, ReSharper and other tools!
Bestseller
Rating: 4.6 out of 54.6 (518 ratings)
3,334 students
Created by Dmitri Nesteruk
Last updated 8/2017
English
English [Auto], Portuguese [Auto]
30-Day Money-Back Guarantee

What you'll learn

  • What unit tests are for and how they are written
  • How to set up and use the NUnit test framework
  • What are the different test doubles: fakes, stubs, mocks
  • How to effectively use the Moq mocking framework
  • How to use the ReSharper unit test runner
  • How to write memory-related unit tests using dotMemoryUnit

Course content

7 sections • 44 lectures • 3h 13m total length

  • Preview03:32

  • Introduction
    00:57
  • What is Unit Testing?
    02:59
  • Setting Up a Unit Testing Project
    Preview03:58
  • Unit Test Runners: Standalone, VS, R#/Rider
    07:11
  • Bank Account Scenario
    04:28
  • Summary
    01:04

  • Overview
    01:04
  • Basic Assertions and Possible Test Results
    05:07
  • Warnings
    06:03
  • Arrange Act Assert
    05:02
  • Multiple Assertions
    Preview03:36
  • Exceptions
    06:20
  • Summary
    01:18

  • Overview
    00:42
  • Data-Driven Testing
    Preview08:22
  • Code Coverage with dotCover
    06:10
  • Continuous Testing with dotCover
    05:12
  • Memory Testing with dotMemoryUnit
    07:54
  • Summary
    00:59

  • Overview
    01:37
  • Mocks, Stubs, Fakes, Moles — What Are They All For?
    05:54
  • Scenario: Bank Account (again!)
    04:13
  • Static Fakes
    02:44
  • Dynamic Fakes with ImpromptuInterface
    09:20
  • Stubs
    03:13
  • Mocks
    06:20
  • Summary
    02:17

  • Overview
    00:56
  • Get Started with Moq
    05:21
  • Mocking Methods: Basics
    04:37
  • Mocking Methods: Argument-Dependent Mocking
    05:04
  • Mocking Methods: Out and Ref Parameters
    Preview09:10
  • Mocking Methods: Exceptions and Return Values
    07:43
  • Mocking Properties: Basics
    08:13
  • Mocking Properties: Value Tracking
    03:37
  • Mocking Events
    09:36
  • Callbacks
    05:33
  • Verification
    04:57
  • Behavior Customization
    06:07
  • Expectations for Protected Members
    02:43
  • Summary
    01:07

  • Course Summary
    01:03
  • Preview00:13

Requirements

  • Good understanding of C#
  • Familiarity with an IDE such as Visual Studio

Description

The goal of this course is to teach you Unit Testing and the use of the latest and greatest tools and frameworks available on the market today. This course covers the following technologies:

  • NUnit, the most popular unit test framework available for .NET
  • Moq, a mocking framework
  • dotMemoryUnit, a unit test framework for testing memory consumption
  • ReSharper (its unit test runner) used extensively in this course
  • dotCover is used to illustrate the concepts of code coverage and continuout testing

In this course you'll learn what unit tests are, how to write and execute them, what are fakes/mocks/stubs/moles and how to use a mocking framework.

Who this course is for:

  • .NET developers wishing to learn about using unit testing
  • Experienced developers wishing to expand their unit testing skills

Instructor

Dmitri Nesteruk
Software/Hardware Engineering • Quant Finance • Algotrading
Dmitri Nesteruk
  • 4.5 Instructor Rating
  • 26,690 Reviews
  • 139,863 Students
  • 21 Courses

Dmitri is a quant, developer, book author and course author. His interests lie in software development and integration practices in the areas of computation, quantitative finance and algorithmic trading. His technological interests include C# and C++ programming as well high-performance computing using technologies such as CUDA and FPGAs. He has been a C# MVP since 2009. 

  • Udemy for Business
  • Teach on Udemy
  • Get the app
  • About us
  • Contact us
  • Careers
  • Blog
  • Help and Support
  • Affiliate
  • Terms
  • Privacy policy
  • Cookie settings
  • Sitemap
  • Featured courses
Udemy
© 2021 Udemy, Inc.