How to Add Unit Tests to C# ASP.Net Core Web App in Visual Studio + Complete Examples of Clean Tests

preview_player
Показать описание
Complete tutorial on how to add Unit Tests to your C# ASP.Net Core Web Application. In this video I show you the exact steps on how to set up a unit test project, show you some best practices, and show you how to write unit tests from scratch. Unit tests are a key to clean software development, and you should be adding them to your solution. Subscribe for more videos!

Unit Tests typically follow this pattern: Arrange, Act, Assert. I go over this pattern, and other patterns for structuring your test class, all in this video!

Here is a stack overflow thread on the build error problem shown:

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

very good, very helpful, good voice for it, good vocabulary, not too many words, not too few

YadaYada-sphz
Автор

thanks alot ! you saved me alot of time and energy and the way you explain things is just amazing

tj
Автор

Thank you, that saved me some valuable time.

inventingdreams
Автор

A naming convention suggestion:
public void { }

example:
public void () { }

zerosandones
Автор

Thanks. Could you make a video about how to make asp.net core mvc app with test-first approach?

khrystynamakar
Автор

Hey! First of all thank you for this video. I am going to do a run of all your previous videos now. I had a quick question, can you please show how to debug and see a logger output while running these unit tests ?

sanaydevi
welcome to shbcf.ru