Test-driven development (TDD) is a proven way of developing high-quality applications with clean and well-maintainable code. In this course, you will learn how to use the xUnit testing library to apply the principles of test-driven development on .NET.
You will start this course by reviewing the fundamentals of xUnit and how automated testing works on .NET. Then, you will practice the key TDD fundamentals. After this, you will move to more advanced topics, such as mocking, understanding the testing pyramid, running integration tests against hosted apps, etc.
By the end of the course, you will have learned how to develop high-quality software by following the TDD principles. You will also have learned how to use xUnit to write any automated tests supported by .NET.
Test-driven development (TDD) is a proven way of developing high-quality applications with clean and well-maintainable code. In ...Show More
WHAT YOU'LL LEARN
Familiarity with the principles of test-driven development
The ability to write automated tests in .NET using xUnit
An understanding of unit and integration tests
Familiarity with testing best practices
An understanding of the test pyramid to produce bug-free software
Familiarity with the principles of test-driven development
Show more
TAKEAWAY SKILLS
Content
1.
Introduction to Automated Testing
8 Lessons
Get familiar with xUnit, its setup, test creation, parametric testing, and test automation principles in .NET.
2.
Test-Driven Development
8 Lessons
Discover the logic behind TDD stages, benefits, challenges, and an application example.
3.
Assertions as a Key Part of Automated Tests
9 Lessons
Examine key assertion methods and libraries in xUnit to enhance automated test readability.
4.
Different Types of Automated Tests
7 Lessons
Grasp the fundamentals of automated test types and their applications in Test-Driven Development.
5.
Mocking External Dependencies
8 Lessons
Solve problems in mocking and stubbing external dependencies for isolated unit testing.
6.
Working with Code Coverage Metrics
6 Lessons
Follow the process of evaluating and enhancing code coverage metrics through meaningful tests.
7.
Summary
2 Lessons
Build on applying TDD principles with xUnit for comprehensive automated testing in .NET.
8.
Appendix
3 Lessons
Get familiar with setting up a .NET environment, IDE test execution, and CLI testing.
Certificate of Completion
Showcase your accomplishment by sharing your certificate of completion.
Course Author:
Developed by MAANG Engineers
Trusted by 2.8 million developers working at companies
"These are high-quality courses. Trust me. I own around 10 and the price is worth it for the content quality. EducativeInc came at the right time in my career. I'm understanding topics better than with any book or online video tutorial I've done. Truly made for developers. Thanks"
Anthony Walker
@_webarchitect_
"Just finished my first full #ML course: Machine learning for Software Engineers from Educative, Inc. ... Highly recommend!"
Evan Dunbar
ML Engineer
"You guys are the gold standard of crash-courses... Narrow enough that it doesn't need years of study or a full blown book to get the gist, but broad enough that an afternoon of Googling doesn't cut it."
Software Developer
Carlos Matias La Borde
"I spend my days and nights on Educative. It is indispensable. It is such a unique and reader-friendly site"
Souvik Kundu
Front-end Developer
"Your courses are simply awesome, the depth they go into and the breadth of coverage is so good that I don't have to refer to 10 different websites looking for interview topics and content."
Vinay Krishnaiah
Software Developer
Hands-on Learning Powered by AI
See how Educative uses AI to make your learning more immersive than ever before.
AI Prompt
Code Feedback
Explain with AI
AI Code Mentor
Free Resources