There is a huge number of books about TDD. Those books usually
concentrate on using test for units of work. Units of work are
understood in many different ways, usually it means a class. So the
books say: write a lot of tests, make code in such a way the...