To keep things short - after looking on how to Unit Test SharePoint (2007 for now) I ended up using Pex with Moles (http://research.microsoft.com/en-us/projects/pex/) plus Behaviors.
Behaviors can be found in documentations directory after installing Pex and we started already extending it and fixing some existing issues. So far works great and, as long as you have some time to invest in the beginning of the projects, I highly recommend this solution.
Idea is to have loosely coupled SharePoint object model you can setup before test and test against it. So far so good and one thing I found can be fixed is BSPFileCollection class which has wrong constructor. So when you try something like BSPList.SetRootFolder() it will fail.
To fix it you need to correct constructor:
public BSPFileCollection()
: this(MoleRuntime.CreateUninitializedInstance<BSPFileCollection>())
{ }
to initialize SPFileCollection not BSPFileCollection:
public BSPFileCollection()
: this(MoleRuntime.CreateUninitializedInstance<SPFileCollection>())
{ }
and change second one to reflect it:
public BSPFileCollection(SPFileCollection _instance)
: base("Files", _instance, w => w != null)
Hopefoully it will help someone :)
As I'm still in testing phase... I'm testing testing... hmmm... I'll write something about Pex and Moles latter.