I would like to know how to implement unit testing in an existing (quite large) application using visual studio 2008 (.net 2.0).
I understand that developing unit te
Simple approach:
For easier organization, create at least one namespace for each project in solution, for example UnitTest.Project1, UnitTests.Project2, ... Depending on size of projects, add more levels to namespace.
This way test project is part of solution. If you use some continuous integration tool, then tests can be automatically executed on each commit to source code repository.
Edit:
Regarding comment on MS Unit Test Framework problem with creating unit tests, there is know problem: "Create unit test" wizard does not work. It looks that there are unsupported types of projects that prevent unit test wizard from working correctly. I just tried with one solution that have one F# and several C# projects. I added unit testing project and tried to add tests. Test wizard had problems until I unloaded F# project. Then everything worked fine.