Unit Testing Dotnet (.Net) Application With Xunit .Net & Moq

Posted By: ELK1nG

Unit Testing Dotnet (.Net) Application With Xunit .Net & Moq
Last updated 5/2019
MP4 | Video: h264, 1280x720 | Audio: AAC, 44.1 KHz
Language: English | Size: 1.88 GB | Duration: 3h 30m

Mocking Techniques, Test Driven Development (TDD), and Unit Testing Legacy Code with xUnit. NET + Interview Questions

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
Requirements
C# programming beginner level
Visual Studio 2015, 2017, 2019 or Visual Studio for Mac
Description
*** NOW UPDATED FOR DOTNET 6 ***Attention, all dotnet developers looking to develop new skills and take their career to the next level – this is the course to help you get there!This course is focused on the Unit Testing .NET Core / .NET 6 Projects with xUnit .net, an open-source unit testing tool for .Net Framework and .Net Core/6 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 essential .NET core development tasks.In this course, I will teach you:the fundamentals of the xUnit .net ;how to write compelling 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 applicationsNo pre-requisite knowledge is required to complete this course, but a positive attitude and a willingness to learn are 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 to create an engaging learning environment for my students.––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––-Española:Atención a todos los desarrolladores de . NET Core que buscan desarrollar nuevas habilidades y llevar su carrera al siguiente nivel: ¡este es el curso que los ayudará a lograrlo!Este es un curso enfocado en los proyectos de pruebas unitarias . NET Core / . NET 5 con xUnit . net; una herramienta de prueba unitaria de código abierto para aplicaciones . Net Framework y . Net Core y la herramienta estándar para pruebas unitarias de proyectos C #, VB. NET y F # en Visual Studio.Ser un usuario competente y seguro de esta herramienta le permitirá ejecutar tareas clave de desarrollo del núcleo de . NET.En este curso te enseñaré:los fundamentos de xUnit . net;cómo escribir pruebas unitarias efectivas y bien organizadas para sus aplicaciones centrales . NET;cómo utilizar las capacidades de prueba basadas en datos;cómo usar marcos de simulación, incluido MoQ;cómo utilizar la técnica de desarrollo impulsado por pruebas (TDD);cómo probar el código heredado (antiguo);cómo escribir pruebas unitarias para aplicaciones ASP. NET Core MVCNo se requieren conocimientos previos para completar este curso, ¡pero una actitud positiva y la voluntad de aprender son imprescindibles!Las preguntas siempre son bienvenidas por parte de los estudiantes y se pueden hacer en la sección de preguntas y respuestas del curso. Me esfuerzo por responder a estos rápidamente para poder crear un entorno de aprendizaje atractivo para mis alumnos.

Overview

Section 1: Introduction

Lecture 1 Introduction

Lecture 2 What is XUnit .Net?

Lecture 3 Features of XUnit .Net

Lecture 4 Writing your first Unit Test

Lecture 5 Execute Unit Tests in Visual Studio

Lecture 6 Execute Unit Tests via Command Line

Lecture 7 Execute Unit Tests with ReSharper

Lecture 8 Phases of Unit Testing

Section 2: Asserts

Lecture 9 The Assert Phase

Lecture 10 Asserting numeric values

Lecture 11 Asserting string values

Lecture 12 Asserting boolean values as well as null values

Lecture 13 Asserting Collections

Lecture 14 Asserting a range of values

Lecture 15 Asserting Exceptions

Lecture 16 Asserting object types

Section 3: Arrange Phase, and Managing Tests

Lecture 17 Collections and Traits

Lecture 18 Class Fixtures and IClassFixture

Lecture 19 Constructors and IDisposable

Lecture 20 Collection Definition

Lecture 21 Parallel Execution of Tests

Section 4: Data Driven Tests

Lecture 22 Data Driven Tests in XUnit .net and the "Theory" attribute

Lecture 23 Passing parameters to unit tests with inline attributes

Lecture 24 Sharing test data across multiple unit test methods

Lecture 25 Passing parameters to unit tests from external resources

Lecture 26 Sharing test data across multiple unit test methods with custom attributes

Section 5: Mocking and Unit Testing with MOQ & xUnit

Lecture 27 Introduction

Lecture 28 What is Mocking ?

Lecture 29 Creating the xUnit Test Project

Lecture 30 Writing our first test with Mock and xUnit

Lecture 31 Testing when ModelState is invalid

Lecture 32 Setting Up the Mocked Objects

Lecture 33 Writing a Test with Arrange, Act and Assert Format

Section 6: Unit Testing Legacy Code

Lecture 34 Introduction to Unit Testing and Legacy Code

Lecture 35 The "Sprout Method" Technique

Lecture 36 The "Sprout Class" Technique

Section 7: Test Driven Development (TDD)

Lecture 37 Introduction to Test Driven Development

Lecture 38 Test Driven Development with xUnit.net

Section 8: More xUnit.net

Lecture 39 Measuring Unit Test Coverage

Section 9: Interview Questions

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