In this section, we are going to create a new project in our backend Visual Studio solution and start to implement simple unit tests to get comfortable with xUnit, which is the tool we are going to use to run our backend tests. So, let's open our backend ASP.NET Core project and carry out the following steps:
- Open up the Solution Explorer, right-click on Solution, choose Add, and then choose New Project....
- Select xUnit Test Project (.NET Core) from the dialog box that opens and click on the Next button:
- Enter BackendTests as the project name and set Location to the folder that the solution is in. Click Create ...