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 Amazon AWS AWS Certified Developer - Associate CompTIA Security+
Photoshop Graphic Design Adobe Illustrator Drawing Digital Painting InDesign Character Design Canva Figure Drawing
Life Coach Training Neuro-Linguistic Programming Mindfulness Personal Development Personal Transformation Meditation Life Purpose Neuroscience Coaching
Web Development JavaScript React CSS Angular PHP Node.Js WordPress 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 Google Analytics
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

This course includes:

  • 3.5 hours on-demand video
  • Full lifetime access
  • Access on mobile and TV
Development Software Testing Unit Testing

Unit Testing .Net Core Applications with xUnit .net & MOQ

Mocking Techniques, Test Driven Development (TDD), and Unit Testing Legacy Code with xUnit.NET + Interview Questions
Rating: 4.1 out of 54.1 (687 ratings)
3,711 students
Created by Aref K.
Last updated 5/2019
English
English [Auto]
30-Day Money-Back Guarantee

What you'll learn

  • Learn all the features and capabilities of xUnit .net
  • Learn writing unit tests using the Mocking technique and xUnit
  • Learn how to write unit tests for legacy (old) applications
  • Learn Test Driven Development (TDD) with xUnit
  • Learn how to measure test coverage
  • Take the interview questions and get ready for your next interiew
Curated for the Udemy for Business collection

Course content

9 sections • 39 lectures • 3h 30m total length

  • Preview01:24
  • Preview01:05
  • Features of XUnit .Net
    Preview02:21
  • Writing your first Unit Test
    06:27
  • Execute Unit Tests in Visual Studio
    01:38
  • Execute Unit Tests via Command Line
    02:26
  • Execute Unit Tests with ReSharper
    02:31
  • Phases of Unit Testing
    01:46

  • The Assert Phase
    02:40
  • Asserting numeric values
    06:25
  • Asserting string values
    09:32
  • Asserting boolean values as well as null values
    04:45
  • Asserting Collections
    10:28
  • Asserting a range of values
    04:09
  • Asserting Exceptions
    07:27
  • Asserting object types
    06:36

  • Collections and Traits
    07:32
  • Class Fixtures and IClassFixture
    07:44
  • Constructors and IDisposable
    07:14
  • Collection Definition
    11:10
  • Parallel Execution of Tests
    07:01

  • Data Driven Tests in XUnit .net and the "Theory" attribute
    04:10
  • Passing parameters to unit tests with inline attributes
    06:50
  • Preview04:44
  • Passing parameters to unit tests from external resources
    04:46
  • Sharing test data across multiple unit test methods with custom attributes
    03:23

  • Preview02:56
  • What is Mocking ?
    Preview04:00
  • Creating the xUnit Test Project
    04:13
  • Writing our first test with Mock and xUnit
    05:44
  • Testing when ModelState is invalid
    02:55
  • Setting Up the Mocked Objects
    07:49
  • Writing a Test with Arrange, Act and Assert Format
    09:28

  • Preview01:30
  • The "Sprout Method" Technique
    08:48
  • The "Sprout Class" Technique
    10:22

  • Preview02:30
  • Test Driven Development with xUnit.net
    09:33

  • Measuring Unit Test Coverage
    04:47

  • Unit Testing
    4 questions

Requirements

  • C# programming beginner level
  • Visual Studio 2015, 2017, 2019 or Visual Studio for Mac

Description

Attention all .NET Core developers looking to develop new skills and take their career to the next level – this is the course to help you get there!


This is a focused course on the Unit Testing .NET Core / .NET 5 Projects with xUnit .net; an open-source unit testing tool for .Net Framework and .Net Core applications and the standard tool for unit testing C#, VB.NET and F# projects in Visual Studio. 

Being a proficient and confident user of this tool will allow you to execute key .NET core development tasks.

In this course, I will teach you:

  • the fundamentals of the xUnit .net ;

  • how to write effective and well-organised unit tests for your .NET core applications;

  • how to use data-driven testing capabilities;

  • how to use mocking frameworks, including MoQ;

  • how to use test-driven development (TDD) technique;

  • how to test legacy (old) code;

  • how to write unit tests for ASP.NET Core MVC applications



    No pre-requisite knowledge is required to complete this course, but a positive attitude and a willingness to learn is a must!

Questions are always welcome from students and can be asked in the Q&A section of the course. I endeavour to respond to these quickly so I can create an engaging learning environment for my students


Who this course is for:

  • C#, VB .Net or F# progrmmers
  • .NET Framework and/or ASP .NET developers
  • .NET Core programmers
  • Testers and QA Engineers
  • Xamarin developers

Instructor

Aref K.
Chief Technology Officer
Aref K.
  • 4.2 Instructor Rating
  • 6,617 Reviews
  • 43,748 Students
  • 10 Courses

Aref is an experienced software engineer passionate about sharing his knowledge and experience with others.

He completed a masters degree in Software Engineering but his journey with programming began when he was just 13 years old (with a Commodore 64 computer).

At age 17, Aref sold his first commercial software, a real estate management program written in Turbo Pascal. He also developed an interest and high proficiency in 8085 and 8086 assembly languages. This interest led to a period where he worked in the electronics industry building industrial automation devices.

As a (cheeky) hobby, Aref worked on computer viruses that came to the attention of Peter Norton. Googling “Aref.890” turns up some interesting information!  

Since this time, Aref has continued to build a variety of enterprise software solutions using engineering tools and frameworks such as FoxPro, Delphi, C++, C#, Grafana, New Relic, TeamCity, and Bamboo.

Aref is also passionate about teaching, spending 3.5 years working as a high school teacher in Iran. He now channels this passion into online teaching and is grateful for the opportunity to teach many students around the world.

He has published two books around software development one of which was published when he was 19 years old.

Aref currently works in Australia as a technology leader, and he enjoys working with talented engineers and creating various software architecture solutions for clients.

  • 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.