Testing .NET Code with xUnit.net 2: Getting Started
xUnit.net is a modern testing framework that is also used by the .NET development team. This course teaches you how to get started writing xUnit.net automated tests to verify your application is working as expected and help prevent costly bugs.
What you'll learn
It's usually more expensive, time-consuming, and stressful to fix software bugs after they have been released to production environments. A good set of automated tests helps to verify that the application is working as expected and helps to prevent bugs from getting into production. In this course, Testing .NET Code with xUnit.net 2: Getting Started, you'll get an overview of automated testing to empower you to be able to start testing your own applications. First, you'll learn how to create xUnit.net automated tests that verify different types of results. Next, you'll explore how to customize and control test execution and categorization. Finally, you'll discover how to reduce the amount of test code you need to write by using the power of data-driven tests. When you're finished with this course, you'll have a foundational knowledge of xUnit.net that will help you to start writing your own automated tests.
Table of contents
- Version Check 0m
- Introduction 3m
- Why Write Automated Tests? 2m
- An Overview of Different Test Types 3m
- Testing Behaviour vs. Private Methods 2m
- The Logical Phases of an Automated Test 1m
- Introducing xUnit.net 4m
- Creating the Test Project 4m
- Creating a .NET Framework Test Project 3m
- Starting to Create the First Test 3m
- Summary 2m
- Introduction 2m
- An Overview of Asserts 2m
- How Many Asserts per Test? 1m
- Adding an Assert to the First Test 2m
- Making Assertions Against String Values 6m
- Asserting on Numeric Values 5m
- Asserting on Floating Point Values 3m
- Asserting Null Values 2m
- Asserting with Collections 6m
- Making Asserts Against Object Types 6m
- Asserting on Object Instances 2m
- Asserting That Code Throws the Correct Exceptions 5m
- Asserting That Events Are Raised 4m
- Summary 2m
- Introduction 2m
- Categorizing and Running Subsets of Tests 5m
- Running Categories of Tests at the Command Line 2m
- Skipping Tests 2m
- Writing Custom Test Output Messages 3m
- Reducing Duplicated Test Code 4m
- Sharing Context Between Tests During Execution 6m
- Sharing Context Across Test Classes 4m
- Summary 2m