Test project
A unit test project is a software project containing automated tests that exercise application components and the dependencies needed to run them.
ASP.NET Core in Action, 3e
A unit test app is a .NET console application project that contains automated tests and their test dependencies.
- How it is used
- Uses a console application to organize isolated automated tests and connect them to standard .NET test execution.
- How deep it goes
- Defines project components, creation, execution, test attributes, and application references without addressing broader testing strategy.
- Examples
- Uses xUnit creation commands, Fact and Theory methods, Test Explorer, dotnet test, and ProjectReference configuration.
- What you can do after
- Operate test projects with dotnet test or Test Explorer and configure them to test application classes.
Pro ASP.NET Core 7, Tenth Edition
A unit test project is a software project containing automated tests that exercise application components in isolation.
- How it is used
- Organizes isolated ASP.NET Core component tests outside the deployable application.
- How deep it goes
- Explains project creation, framework selection, references, cleanup, and execution, but defers detailed test implementation and mocking.
- Examples
- Uses SimpleApp.Tests and SportsStore.Tests CLI projects, XUnit templates, project references, and removal of UnitTest1.cs.
- What you can do after
- Build it from scratch with dotnet new, register it in a solution, reference application code, and run tests with dotnet test.
Read how Pro ASP.NET Core 7, Tenth Edition explains test project →
Related concepts
- unit testhas part · A unit test is a test that evaluates the behavior of a small, isolated unit of software against expected behavior.
- testing SDKuses · A testing SDK is a software development kit that supplies project configuration and tooling for building and running tests.
- dotnet testused by · dotnet test is a .NET CLI command that builds a project or solution and discovers and executes its tests.
- test automation frameworkuses · A test automation framework is software infrastructure that provides conventions and facilities for defining, organizing, executing, and evaluating automated tests.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

