Getting started with xUnit

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:

  1. Open up the Solution Explorer, right-click on Solution, choose Add, and then choose New Project....
  2. Select xUnit Test Project (.NET Core) from the dialog box that opens and click on the Next button:
  1. Enter BackendTests as the project name and set Location to the folder that the solution is in. Click Create ...

Get ASP.NET Core 3 and React now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.