Industry, employers, startups, and amateur developers are increasingly looking towards unit testing their software. Unit testing is one of the most reliable ways to find and keep software bugs at bay, thus reducing costs and development pains. Developers working with the .NET framework are overwhelmingly turning to NUnit to meet their unit testing needs.
In this course, you’ll learn the principles of unit testing, and in the process, learn to configure and use the NUnit testing framework. Given that the course places an emphasis on principles, these skills are transferable to other unit testing frameworks. Alongside these, you’ll also get hands-on experience with projects and exercises that provide ample opportunities to learn how to design effective tests in the NUnit framework.
At the end of the course, you’ll be able to quickly write unit tests that maximize logical coverage, test complex applications, and better organize your testing projects—setting you up as a natural leader in your organization.
Industry, employers, startups, and amateur developers are increasingly looking towards unit testing their software. Unit testing...Show More
WHAT YOU'LL LEARN
A thorough understanding of unit testing principles
Hands-on experience writing unit tests using the NUnit framework
Familiarity with practices that make testing effective, maintainable, and agile
Familiarity with testing industry practices, trends, and tools
A thorough understanding of unit testing principles
Show more
Content
1.
Fundamentals of Unit Testing
16 Lessons
Learn how to use unit testing principles, frameworks, and best practices with NUnit.
About This CourseThe Perils of Manual TestingThe Perils of Software RegressionThe Essence of Automated TestingThe Essence of Unit TestingNavigating Various Unit Test FrameworksInternal Structure of Test MethodsEffectively Arranging Input Data for Test CasesPositive vs Negative TestsIdentifying Application Code to TestUnit Test Coverage: Concepts and TechniquesUnit Test Naming ConventionsUnit Testing Best PracticesQuiz Yourself on Introduction to Unit TestingChallenge: Test Using Best PracticesSolution: Test Using Best Practices
2.
Testing Conditions With Classic And Fluent Assertions
12 Lessons
Discover the logic behind unit testing conditions with various NUnit assertions and techniques.
Summary of Classic and Fluent AssertionsWorking With Reference TypesAsserting StringsAssert Value CategoriesAssertions and Test Cases for Enumerables and CollectionsAsserting TypesAsserting Values in RangeTesting Within and Outside of ContractAsserting ExceptionsQuiz Yourself on AssertionsChallenge: Using Appropriate AssertionsSolution: Using Appropriate Assertions
3.
Making Unit Testing More Effective
14 Lessons
Work your way through reducing redundancy, parameterizing tests, and balancing testing approaches.
4.
Unit Testing Code with External Dependencies
7 Lessons
Build a foundation in managing external dependencies, employing mocks, and dependency injection.
5.
Conclusion
3 Lessons
Take a look at key unit testing principles, essential terminology, and resources in .NET.
6.
Appendix - Unit Test Project Organization and Console Setup
6 Lessons
Focus on setting up and running NUnit projects, utilizing test coverage tools, and structuring test projects.
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