ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Uncovering the Secret to Refactoring Legacy Code!

C#

.NET CORE

Web API

ASP .NET

Test

XUNIT

SQL

SQl Server

tutorial

For Beginners

TDD

legacy code

refactoring

refactoring legacy code

snapshot testing

gilded rose kata

gilded rose kata c#

verify

generate test data c#

testing

code coverage

dotnet core

dotnet core tutorial

snapshot testing C#

old code

spaghetti code

software development

code refactoring

software engineering

Refactoring c# code

Auto-generate unit test

Автор: Foad Alavi

Загружено: 2023-04-26

Просмотров: 751

Описание: The secrets of refactoring a legacy code, which has no unit test by generating unit tests automatically add having 100% unit test coverage. You will learn how snapshot testing, mutation testing, and unit testing will help you refactor a C#legacy code.

Buy me a coffee: https://buymeacoffee.com/foadalavix
Patreon:   / foadalaviyoutube  

⏱️⏱️VIDEO CHAPTERS⏱️⏱️
00:00 - Intro
01:56 - 100% coverage using snapshot Testing
12:32 - Mutation testing to test our unit test
17:00 - Start Refactoring- Lifting up conditions
38:06 - Single Responsibility principle
52:19 - Verify testing

🔔 Subscribe for more tips just like this: https://www.youtube.com/@Foad_Alavi?s...

More Description:
The video is about how to refactor legacy code without affecting existing functionality. The speaker discusses an example of code, which lacks unit tests and has a method that needs to be refactored. The speaker emphasizes the importance of having a fully covered code before refactoring. They introduce the concept of snapshot testing, where they use the library called Verify to create a snapshot of the test result. The speaker demonstrates how to use Verify to generate data for all conditions of the method, using nested loops to create all possible combinations of values that the method accepts. The goal is to generate unit test coverage of 100% for the code.

GitHub Repo: https://github.com/foadalavi/Test-Fou...

All About Testing Playlist:    • All About Testing  

#csharp #testing #refactoring

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Uncovering the Secret to Refactoring Legacy Code!

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

Master ASP.NET Core Integration Testing: Learn How TestContainers and WebApplicationFactory Can Help

Master ASP.NET Core Integration Testing: Learn How TestContainers and WebApplicationFactory Can Help

Swift vs Rust vs C#: какой язык реально БЛЕЙЗИНГ ФАСТ?!

Swift vs Rust vs C#: какой язык реально БЛЕЙЗИНГ ФАСТ?!

Копия Miro с нуля на React в 2025 + Архитектура front-end БЕЗ FSD!

Копия Miro с нуля на React в 2025 + Архитектура front-end БЕЗ FSD!

Mastering Clean Architecture: Building A Robust Persistence Layer

Mastering Clean Architecture: Building A Robust Persistence Layer

Как Amazon Q CLI ускоряет разработку: Демо и реальные примеры

Как Amazon Q CLI ускоряет разработку: Демо и реальные примеры

⚡️ Самая масштабная атака РФ по Украине || Путина просят о помиловании

⚡️ Самая масштабная атака РФ по Украине || Путина просят о помиловании

Setting Up A Clean Architecture Project And Building The Domain Layer

Setting Up A Clean Architecture Project And Building The Domain Layer

Я ПРОВЁЛ 3 ДНЯ с ПОПУЛЯРНЫМ FPV ДРОНОМ и ВОТ ЧТО СЛУЧИЛОСЬ!

Я ПРОВЁЛ 3 ДНЯ с ПОПУЛЯРНЫМ FPV ДРОНОМ и ВОТ ЧТО СЛУЧИЛОСЬ!

Новейшая ракета РФ уничтожена / Жаркая ночь в Крыму

Новейшая ракета РФ уничтожена / Жаркая ночь в Крыму

Клещ думал, что он охотник, пока не встретил муравьев!

Клещ думал, что он охотник, пока не встретил муравьев!

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]