Post-Build event to run your unit tests.
Ideally, Nant scripts and automated builds are much better solution then using the Pre/Post Build options. But if you are working on a small project and don’t want to deal with writing Nant scripts then you will find this solution to be useful.
The project structure is fairly simple. We have three projects added to a single solution. Here is the list of the projects:
1) MyClassLibrary: Contains the domain objects
2) PrePostBuildEvents: Console application
3) TestSuite: Contains tests for the domain objects