C# Unit Testing with xUnit
50mIntermediate2023-08-04
Authors

Jesse Freeman
Head of Partner and Framework Marketing at Amazon
Course details
In this course, learn the basics of test-driven development by creating a sample project in pure C# and using unit tests to validate that all the business logic works. Instructor Jesse Freeman first introduces you to the foundational concept of unit testing and the role xUnit plays in it. He then guides you through a detailed setup process of xUnit for your development environment. Jesse also delves deeper into the specifics of xUnit's function, benefits, and its core role in the test-driven development (TDD) cycle.
Skills covered
C#Software TestingProgramming LanguagesMicrosoftSoftware DevelopmentOne-Off
Concepts
0. Introduction
- 01 - Getting started with xUnit
- 02 - What you should know
1. TDD Testing with xUnit
- 03 - Using xUnit for testing
- 04 - The TDD cycle
- 05 - Installing xUnit
2. Writing and Running Unit Tests
- 06 - Writing your first unit test with xUnit
- 07 - Asserting with xUnit
- 08 - Understanding the core unit testing workflow
- 09 - Expanding your xUnit toolkit
3. Building a Simple Calculator
- 10 - Creating addition and subtraction logic
- 11 - Using assertions and refactoring
- 12 - Creating a history functionality
- 13 - Parsing a math equation string
Conclusion
- 14 - Next steps