liveBook · Manning

Test project

A unit test project is a software project containing automated tests that exercise application components and the dependencies needed to run them.

How 2 Manning books explain it

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.

Read how ASP.NET Core in Action, 3e explains test project →

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

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.