Introduction to .NET Testing with NUnit 3
NUnit is one of the most downloaded test frameworks for .NET. This course will teach you everything you need to know to get started testing your code, including asserts, categories, data-driven tests, customization, and how to reduce test code duplication.
What you'll learn
Releasing bug-ridden code to production is a sure fire way of creating unhappy end-users, management, and development teams. Nobody likes to receive a phone call in the middle of the night saying that the production system has gone down and needs fixing, immediately. In this course, Introduction to .NET Testing with NUnit 3, you will gain the ability to create automated tests for you code. First, you will learn how to set up a test project and run tests. Next, you will discover the different ways to assert on test results such as numbers, collections, and expected exceptions. Finally, you will explore how to customize the test execution lifecycle, create data driven tests, and customize NUnit. When you’re finished with this course, you will have the skills and knowledge of automated testing with NUnit needed to help prevent bugs from making their way into production.
Table of contents
- Introduction 1m
- Why Write Automated Tests? 3m
- Regression Example 1m
- Understanding the NUnit Test Framework 1m
- NUnit Attributes Overview 1m
- NUnit Assertions Overview 1m
- Recognizing Different Testing Scenarios 2m
- The Logical Arrange, Act, Assert Test Phases 2m
- Adding a Second Test 2m
- Qualities of Good Tests 2m
- Summary 2m
- Introduction 1m
- The NUnit Constraint Model of Assertions 4m
- How Many Asserts per Test? 1m
- Asserting on Equality 5m
- Asserting on Reference Equality 3m
- Adding Custom Failure Messages 2m
- Asserting on Floating Point Values 2m
- Asserting on Collection Contents 9m
- Asserting That Exceptions Are Thrown 4m
- Other Assertion Examples 3m
- Summary 1m