I'm working on a sharepoint project, and the associated visual studio solution contains several projects, of which some are plain c# class libraries. I would like to unit test those projects, but each time I deploy the sharepoint solution the library assemblies are installed to the GAC. Because of this, and the fact that GAC assemblies take precedence over local builds, changes I make to the library project aren't tested until the sharepoint solution is re-deployed. Re-deployment is time consuming, and I don't want to do it each time I edit the code. I tried adding a post-build action to automatically install the library's assembly to the GAC, but I couldn't get it to work reliably.
So, how are you guys doing this? Please note that I'm not talking about unit testing against the sharepoint classes. The reason I'm posting this question in the sharepoint section is that in sharepoint projects you repeatedly install assemblies to the GAC, and those assemblies take precedence over assemblies in [project folder]\bin\Debug.
Maybe I'm going about this in the wrong way, and if so, any pointers in the right direction would be appreciated! :)