79544157

Date: 2025-03-30 03:36:56
Score: 1
Natty:
Report link

You shouldn't put the test project inside the main project, you should create a solution then link the main project "webapi" and the test project.

on your new folder create the test project using the commands it's more stable I'd say:

# dotnet new xunit -n "Webapi.Tests"

your main project should be in the same folder

WebapiProject
|__ Webapi
|_
_ Webapi.Tests

Note that you should create a solution and add them together into a single solution, also don't forget to add the main project reference inside the test project.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: ayoub errazki