Tutorial

2.1 Three kinds of test

TestWhat it buildsWhat it catches
UnitOne junction, with its dependencies passed in by handA junction that computes the wrong thing
TrainThe train, through the same AddTrax registration as Program.csA chain that does not run as a whole, a run that is not recorded
HostThe whole application, in memory, called over HTTPA Program.cs that no longer starts, an endpoint that answers wrongly

Most tests are unit tests: they are fast and say exactly what broke. A few train and host tests prove the pieces still fit.


Next: 2.2 Add a solution and a test project