I have been looking a using Isolator AAA syntax for testing sharepoint and it has gone very well.
I have one questions, is it possible to create a fake such as
SPSite fakeSite = Isolate.Fake.Instance<SPSite>(Members.ReturnRecursiveFakes);
inside a ASP.NET web page's constructor. The reason I ask is I was wondering if I could use Isolator to mock out all the MOSS calls made by a webpart, thus allowing it to be run inside a simple ASP.NET web page. This would allow a quick means to check styling/layout.
When I tried it I got the error
Could not load file or assembly 'TypeMock, Version=0.21321.16725.21324, Culture=neutral, PublicKeyToken=545950454d4f434b' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
This is will TypeMock 5.1.1 installed in the GAC and also the assemblies in the web sites local directory. I know the installation is good as MSTEST can use Isolator based tests without any issue.
I suspect sandboxing issue in the Cassini web server, but the version number in the exception did seem a bit strange.