How to pass input parameter to XUnit test methods

preview_player
Показать описание
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:

Рекомендации по теме
Комментарии
Автор

Is it possible to show the difference between fake, stub & mock with a real example?

FH
welcome to shbcf.ru