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.
Complete Guide to Unit Testing in .NET Core (NUnit & xUnit)
Instructeur : Packt - Course Instructors
Inclus avec
Expérience recommandée
Ce que vous apprendrez
Execute unit tests and debug them effectively in .NET Core environments, using MSTest, NUnit, and xUnit.
Differentiate between various testing scenarios, evaluating the appropriate use of mocking and dependency injection with the Moq framework.
Understand the principles and benefits of automated unit testing, and describe how NUnit and xUnit frameworks facilitate these processes.
Create unit tests for an N-tier real-world web application project using xUnit.
Compétences que vous acquerrez
- Catégorie : Unit Testing
- Catégorie : .Net Core
- Catégorie : Nunit
- Catégorie : EF Core
- Catégorie : Xunit
Détails à connaître
Ajouter à votre profil LinkedIn
septembre 2024
4 devoirs
Découvrez comment les employés des entreprises prestigieuses maîtrisent des compétences recherchées
Obtenez un certificat professionnel
Ajoutez cette qualification à votre profil LinkedIn ou à votre CV
Partagez-le sur les réseaux sociaux et dans votre évaluation de performance
Il y a 7 modules dans ce cours
In this module, we will introduce you to the course, covering the basics of manual and automated testing. You will learn about the tools needed and gain an understanding of different types of tests, including the testing pyramid and the logical phase of an automated test.
Inclus
7 vidéos1 lecture
In this module, we will guide you through the initial steps of setting up your first unit test. You'll learn about the nullable feature in .NET 6, create a project, and explore writing and troubleshooting unit tests using MSTest.
Inclus
5 vidéos
In this module, we will delve into unit testing with NUnit. You will create NUnit projects, write tests, and use debugging and assertion techniques. Additionally, you'll complete assignments to solidify your understanding and handle various assertion scenarios.
Inclus
13 vidéos1 devoir
In this module, we will explore advanced concepts in NUnit testing. You will learn to assert collections, handle exceptions, and set up inheritance. The module includes assignments on grading calculators and the Fibonacci series to apply these advanced techniques.
Inclus
14 vidéos
In this module, we will focus on using MOQ for unit testing. You will learn to set up and configure mock objects, perform integration tests, and handle various scenarios with loggers and return values. The module also covers advanced MOQ features like properties and callbacks.
Inclus
17 vidéos1 devoir
In this module, we will cover unit testing with xUnit. You will create xUnit projects, compare it with other frameworks, and work on assignments related to grading calculators and the Fibonacci series. The module also includes topics on MOQ integration with xUnit.
Inclus
11 vidéos
In this module, we will apply NUnit testing to real-world examples. You will set up main projects, data access unit test projects, and Bongo core projects. The module covers in-memory databases, core unit tests, and web application testing, ensuring you can handle complex testing scenarios effectively.
Inclus
19 vidéos2 devoirs
Instructeur
Offert par
Recommandé si vous êtes intéressé(e) par Software Development
Pour quelles raisons les étudiants sur Coursera nous choisissent-ils pour leur carrière ?
Ouvrez de nouvelles portes avec Coursera Plus
Accès illimité à 10,000+ cours de niveau international, projets pratiques et programmes de certification prêts à l'emploi - tous inclus dans votre abonnement.
Faites progresser votre carrière avec un diplôme en ligne
Obtenez un diplôme auprès d’universités de renommée mondiale - 100 % en ligne
Rejoignez plus de 3 400 entreprises mondiales qui ont choisi Coursera pour les affaires
Améliorez les compétences de vos employés pour exceller dans l’économie numérique
Foire Aux Questions
Yes, you can preview the first video and view the syllabus before you enroll. You must purchase the course to access content not included in the preview.
If you decide to enroll in the course before the session start date, you will have access to all of the lecture videos and readings for the course. You’ll be able to submit assignments once the session starts.
Once you enroll and your session begins, you will have access to all videos and other resources, including reading items and the course discussion forum. You’ll be able to view and submit practice assessments, and complete required graded assignments to earn a grade and a Course Certificate.