How to use Assert in MSTest for Unit Testing (C# 11/.NET 7)
00:00 - Introduction to MSTest
00:25 - NuGet packages for MSTest
01:00 - Main attributes for MSTest
01:20 - Using Assert to assert test results
03:30 - Using delta with Assert.AreEqual
04:50 - Using Assert.AreSame
06:22 - Using Assert.IsInstanceOfType
07:12 - Using Assert.IsNull
07:42 - Using Assert.ThrowsException
#csharp #dotnet7 #dotnet #csharp11 #unittesting #mstest
Some of my popular videos:
Elasticsearch with .NET and introduction: https://www.youtube.com/watch?v=9tkrDqMbFMg&t=0s
Hangfire Scheduling an introduction: https://www.youtube.com/watch?v=sQyY0xvJ4-o&t=0s
ASP.NET Core Authentication with JWT (JSON Web Token): https://www.youtube.com/watch?v=vWkPdurauaA&t=0s
Running Background tasks using IHostedService and BackgroundService (In ASP.NET Core 3.1): https://www.youtube.com/watch?v=1Fe7QD7Ovi8&t=0s
How to build an API Gateway in ASP.NET Core using Ocelot (Build API Gateway in a few minutes): https://www.youtube.com/watch?v=hlUGZ6Hmv6s&t=0s
My blog site: https://dotnetcorecentral.com
Видео How to use Assert in MSTest for Unit Testing (C# 11/.NET 7) канала DotNet Core Central
00:25 - NuGet packages for MSTest
01:00 - Main attributes for MSTest
01:20 - Using Assert to assert test results
03:30 - Using delta with Assert.AreEqual
04:50 - Using Assert.AreSame
06:22 - Using Assert.IsInstanceOfType
07:12 - Using Assert.IsNull
07:42 - Using Assert.ThrowsException
#csharp #dotnet7 #dotnet #csharp11 #unittesting #mstest
Some of my popular videos:
Elasticsearch with .NET and introduction: https://www.youtube.com/watch?v=9tkrDqMbFMg&t=0s
Hangfire Scheduling an introduction: https://www.youtube.com/watch?v=sQyY0xvJ4-o&t=0s
ASP.NET Core Authentication with JWT (JSON Web Token): https://www.youtube.com/watch?v=vWkPdurauaA&t=0s
Running Background tasks using IHostedService and BackgroundService (In ASP.NET Core 3.1): https://www.youtube.com/watch?v=1Fe7QD7Ovi8&t=0s
How to build an API Gateway in ASP.NET Core using Ocelot (Build API Gateway in a few minutes): https://www.youtube.com/watch?v=hlUGZ6Hmv6s&t=0s
My blog site: https://dotnetcorecentral.com
Видео How to use Assert in MSTest for Unit Testing (C# 11/.NET 7) канала DotNet Core Central
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Easy way to limit rate of API requests using Rate Limiter middlewareCache and Trace in RepoDb (.Net Core)Dependency Injection for .Net Core Console running in DockerExtension Methods (An Introduction for .NET Developers [.NET 5 and C#])Memento Design Pattern (An Introduction for .NET Developers [.NET 6 and C# 10]).Net Core application with background Thread on DockerCallback function for API rate limiter and Sliding window rate limiterConcurrency rate limiter to limit request rate for ASP.NET Web APIHow to pass test parameters to MSTest methods [C# 11/.NET 7]How to pass input parameter to XUnit test methodsCollection Expressions in C# 12/.NET 8 #csharp #dotnetcore #dotnet #coding #dotnet8Welcome to .Net Core CentralLambda default parameter in C# 12/.NET 8Use CsvHelper for writing and reading CSV filesUsing FakeItEasy for mocking and stubbing for unit testing in C# 11 and .NET 7Extremely easy way to bulk insert data into SQL Server using SqlBulkCopy classWhat is NoSQL? And what is the difference between NoSQL and SQL (or RDBMS)Class, Constructor, Function, and Property in C# [C# Fundamental series, examples in .NET 6 ]AWS Compute Services basics [An Introduction for .NET Developers]Return, Break, Continue and Goto in C# [C# Fundamental series, examples in .NET 6 ]