✅ Structuring Unit Tests
I am following the sample from (https://learn.microsoft.com/en-us/aspnet/core/test/integration-tests?view=aspnetcore-9.0) namely (https://github.com/dotnet/AspNetCore.Docs.Samples/tree/main/test/integration-tests/8.x/IntegrationTestsSample)
I have loaded all.csproj files in MSVS with right click -> add, then did Test -> Run All Tests
The tests run successfully, but I am confused about whether it is necessary to structure my own unit tests this way (folderwise?)
It seems there are 3 .csproj files altogether
- RazorPagesProject.csproj
- RazorPagesProject.Tests.csproj
- RazorPagesProject.Tests.csproj (separate folder)
Do I need to use a separate folder for the tests? Why are there 2 versions of
RazorPagesProject.Tests.csproj
?8 Replies
Looking at the repo you referenced, there are only two csproj files
this is the standard structure and I suggest you try and follow it where possible, yes
There are three
No there isnt
did you clone that repo?
Oh they must have updated it since writing the docs
I followed this direct download from the Documentations page
Unknown User•2d ago
Message Not Public
Sign In & Join Server To View