How to pass input parameter to XUnit test methods
1.3 هزار بار بازدید -
پارسال
-
In this video, I will
In this video, I will cover how to pass test data to XUnit test methods.
00:00 - Creating XUnit test project
00:35 - NuGet packages needed for the XUnit test project
02:00 - Test methods taking input parameter
03:00 - InlineData attribute for passing test data
04:00 - Assert Test method with input parameter
05:00 - MemberData attribute for passing test data
06:38 - Test method with multiple input parameters
08:00 - ClassData attribute for passing test data
#csharp #dotnet #xunit #unittesting #dotnet7 #csharp11
Some of my popular videos:
Elasticsearch with .NET and introduction: An Introduction to Elasticsearch (Bui...
Hangfire Scheduling an introduction: Scheduling recurring jobs with Hangfi...
ASP.NET Core Authentication with JWT (JSON Web Token): ASP.NET Core Authentication with JWT ...
Running Background tasks using IHostedService and BackgroundService (In ASP.NET Core 3.1): Running Background tasks using IHoste...
How to build an API Gateway in ASP.NET Core using Ocelot (Build API Gateway in a few minutes): How to build an API Gateway in ASP.NE...
My blog site: https://dotnetcorecentral.com
00:00 - Creating XUnit test project
00:35 - NuGet packages needed for the XUnit test project
02:00 - Test methods taking input parameter
03:00 - InlineData attribute for passing test data
04:00 - Assert Test method with input parameter
05:00 - MemberData attribute for passing test data
06:38 - Test method with multiple input parameters
08:00 - ClassData attribute for passing test data
#csharp #dotnet #xunit #unittesting #dotnet7 #csharp11
Some of my popular videos:
Elasticsearch with .NET and introduction: An Introduction to Elasticsearch (Bui...
Hangfire Scheduling an introduction: Scheduling recurring jobs with Hangfi...
ASP.NET Core Authentication with JWT (JSON Web Token): ASP.NET Core Authentication with JWT ...
Running Background tasks using IHostedService and BackgroundService (In ASP.NET Core 3.1): Running Background tasks using IHoste...
How to build an API Gateway in ASP.NET Core using Ocelot (Build API Gateway in a few minutes): How to build an API Gateway in ASP.NE...
My blog site: https://dotnetcorecentral.com
پارسال
در تاریخ 1401/11/30 منتشر شده
است.
1,312
بـار بازدید شده