К содержимому
learnspaceYOUR NEXT CHAPTER
ПРОСТРАНСТВО ОБУЧЕНИЯ
ГлавнаяКаталог курсовМоё обучениеCoursera

Знания без границ

Учитесь у лучших университетов и компаний мира.

Открыть Coursera
Интеграция
Пространство университета
Моё пространствоСтраница курса
↵
ЯЛичный кабинетСтудент
© 2026 LearnSpaceКаждый день — возможность узнать больше.Помощь
Complete Guide to Unit Testing in .NET Core (NUnit & xUnit) · LearnSpace
Назад в каталог
courseraПрограммирование

Complete Guide to Unit Testing in .NET Core (NUnit & xUnit)

Курс от Packt
Начальный≈ 8.9 чАнглийский
О курсеНавыкиПрограммаПреподаватели

О курсе

Updated in May 2025. This course now features Coursera Coach! A smarter way to learn with interactive, real-time conversations that help you test your knowledge, challenge assumptions, and deepen your understanding as you progress through the course. Dive deep into unit testing in .NET Core with this guide, featuring NUnit and xUnit. Starting with a solid foundation, you'll understand the principles of manual and automated testing, the advantages of automation, and the necessary tools. The initial modules will set you up with a strong base in different types of tests and the testing pyramid, preparing you for hands-on projects. As you progress, you'll create and run your first unit tests using .NET 6, MSTest, and NUnit, followed by debugging and asserting. Advanced concepts like combining unit tests with expected results, asserting various data types, and setting up global initialization for classes will enhance your skills. Assignments and solutions provide practical experience, ensuring you can handle real-world scenarios effectively. The course also delves into advanced NUnit concepts, Moq framework integration, and xUnit testing. You'll learn to handle collections, exceptions, and inheritance in NUnit, use Moq for mocking dependencies, and perform extensive xUnit tests. Real-world examples will solidify your understanding and prepare you for professional application, making you an expert in .NET Core unit testing. This course is designed for .NET developers, QA engineers, and IT professionals seeking to master unit testing in .NET Core. Basic programming knowledge and C#, .NET Core, EF Core skills is recommended.

Навыки, которые вы освоите

Integration TestingDebugging.NET FrameworkC# (Programming Language)Test CaseSoftware TestingData AccessTest ToolsDevelopment TestingTest AutomationMockups

Программа курса

7 модулей · 97 учебных материалов

01Introduction to the Course8 материалов

Introduction to the Course

WelcomeВидеоFull Course ResourcesЧтениеManual Testing OverviewВидеоAdvantages of Automated TestingВидео

Учитесь у экспертов

Packt - Course Instructors

Преподаватель курса

Complete Guide to Unit Testing in .NET Core (NUnit & xUnit)
В каталоге вашей программы

Инвестируйте в себя

Новые знания — в удобное для вас время.

Начать на Coursera

Обучение откроется на Coursera
в новой вкладке

Обучение на Coursera

≈ 8.9 ч

7 модулей

Язык: Английский

Часть программы вашего университета
Tools NeededВидео
Types of TestsВидео
Testing PyramidВидео
Logical Phase of an Automated TestВидео
02First Unit Test6 материалов

First Unit Test

.NET 6 Update - NullableВидеоCreate ProjectВидеоCreate MSTest ProjectВидеоFirst Unit TestВидео Failed Test ExampleВидеоManaging Nullable Reference Types in .NET 6DIALOGUE
03Unit Testing15 материалов

Unit Testing

Create NUnit ProjectВидеоFirst NUnit TestВидеоDebug and AssertВидеоAssignment 1 - Odd Number CheckerВидеоAssignment 1 Solution - Odd Number CheckerВидеоAssertion ModelВидеоTesting multiple valuesВидеоCombine Unit Test with Expected ResultВидеоAsserting DoublesВидеоAsserting String ValuesВидеоString Assert Helper MethodsВидеоAsserting Null ValuesВидеоGlobal Initialization for ClassВидеоAssessment 1ЗаданиеSwitching to Nunit Testing FrameworkDIALOGUE
04NUnit Testing - Advance Concepts15 материалов

NUnit Testing - Advance Concepts

Asserting CollectionsВидеоCollections Helper MethodВидеоRange AssertВидеоMultiple AssertВидеоWorking with ExceptionsВидеоExceptions without MessageВидеоSet Up InheritanceВидеоAssert Object TypeВидеоAssignment 2 - Grading Calculator Part 1ВидеоAssignment 2 - Grading Calculator Part 1 SolutionВидеоAssignment 2 - Grading Calculator Part 2ВидеоAssignment 2 - Grading Calculator Part 2 SolutionВидеоAssignment 3 - Fibo SeriesВидеоAssignment 3 - Fibo Series SolutionВидеоTesting Collections with C#DIALOGUE
05MOQ with Unit Testing19 материалов

MOQ with Unit Testing

Set Up Bank Account ClassВидеоSetting Up Logger ClassВидеоIntegration Test DemoВидеоUnit Test with Fake LoggerВидеоMocking OverviewВидеоMOQ in ActionВидеоMissing MOQВидеоSetting Up LogBook WithdrawalВидеоMOQ Setup with Conditional ReturnВидеоMOQ Setup Default Return ValueВидеоMOQ Evaluate the Return ValueВидеоMOQ and Out ParametersВидеоMOQ and RefВидеоMOQ Default Return ValuesВидеоMOQ PropertiesВидеоMOQ CallbacksВидеоMOQ VerificationВидеоAssessment 2ЗаданиеCreating a Robust Banking System Using Mocking TechniquesDIALOGUE
06xUnit12 материалов

xUnit

Create xUnit ProjectВидеоxUnit ComparisonВидеоxUnit Calculator Part 1ВидеоxUnit Calculator Part 2ВидеоAssignment 4 - Grading CalculatorВидеоAssignment 4 - Grading Calculator xUnit SolutionВидеоAssignment 5 - Fibo Series xUnitВидеоAssignment 5 - Fibo Series xUnit SolutionВидеоMOQ and xUnitВидеоCustomer xUnitВидеоAssignment 6 - Bank Account xUnitВидеоConverting Unit Tests from NUnit to XUnitDIALOGUE
07Real-World Example - NUnit22 материалов

Real-World Example - NUnit

Set Up Main ProjectВидеоBongo Project Code OverviewВидеоBongo Models Date Checker Part 1ВидеоBongo Models Date Checker Part 2ВидеоSet Up Data Access Unit Test ProjectВидеоIn-Memory Database and Unit TestingВидеоData Access Unit TestsВидеоData Access Unit Tests Bugs and PitfallsВидеоSet Up Bongo Core Unit Test ProjectВидеоBongo Core MOQ Setup and GetAllBooking TestВидеоBongo Core Exception Unit testВидеоBongo Core Save Booking SetupВидеоBongo Core Save Booking Unit TestВидеоBongo Core Return Code TestCaseВидеоBongo Core Separating Unit TestsВидеоBongo Web Test Project SetupВидеоBongo Web Index Action Method Unit TestВидеоBongo Web Checking View NameВидеоBongo Web Controller Unit TestsВидеоAssessment 3ЗаданиеFull Course Practice AssessmentЗаданиеFull Course AssessmentЗадание