Udemy

Features of XUnit .Net

A free video tutorial from Aref Karimi
Technology Leader and Evangalist
Rating: 4.4 out of 5Instructor rating
13 courses
122,630 students
Features of XUnit .Net

Lecture description

Learn about the main features and design goals of XUnit .Net

Learn more from the full course

Unit Testing Dotnet (.NET) Application with xUnit .net & MOQ

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

03:35:14 of on-demand video • Updated March 2023

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
English [Auto]
Let's have a look at the features of X unit dot net and also understand that what the creator of X unit dot net had in mind when he designed this. So X unit dot net supports multiple platforms. You can use it, as I said, for testing the. Net framework applications. You can use it for your Xamarin applications. You can use it for writing unit tests for your. Net core applications and including ASP. Net core. Also accent dot net supports parallel test execution, which will speed up the execution of unit tests. And also it supports something that we call data driven tests. And that means that when you have a test that will receive different inputs and you will expect different outputs for each input, and instead of writing multiple tests, you can basically write one test and then pass different data to it and then check to see if the output is as expected. And this is called data driven test. It will make writing tests a lot quicker and easier. Soon we will see how we can write such tests. Also X unit dot net is designed to be extensible. That means that you can add more data types, attributes assets to extranet dot net and also you can use it alongside other testing frameworks. And also it's a very easy to install kind of testing tool. You only install it via NuGet packages and therefore it's very easy because if you use Dotnet, you know how to use NuGet packages. And also, as I said in the introduction video of the course, with the advent of Dotnet core, Microsoft has adopted ECS unit Dotnet as the default and standard unit testing tool. And so if you have Visual Studio and you have installed Dotnet core, when you will create a project and then you want a test project to be added to your solution, that test project by default will be a ECS unit net project.