Technical requirements
For the recipes in this chapter, you’ll need the following:
- .NET 9 SDK:
Microsoft.NET.Test.SDK
is included out of the box. We will be creating most of our tests with the xUnit template, which is already included. We will be installing the needed packages as we go. - IDE: Almost all of the unit and integration test recipes also work out of the box with Visual Studio, Rider, or VS Code’s test runner thanks to
xunit.runner.visualstudio
. The recipes in this chapter will usedotnet test
to keep them as cross-platform as possible. Keep in mind they can also just as easily be run in the IDE of your choice.