After converting to Visual Studio 2010 with ReSharper5 some of my unit tests started failing. More specifically this applies to all unit tests that use NHibernate with SQLit
I got the same error, I was sure that it was due to .NET 4.0 and VS 2010, but when I upgraded to Resharper 5 at work (on VS 2008), I got the same error.
I think this is caused by Resharper 5 test runner. When I used TestDriven.NET they all ran successfully.
I hope JetBrains will release a fix soon. According to what I saw on the forums, they are aware of the problem, so it should not take too long to have a fix.
While this is fixed, I will use TestDriven.NET to run my tests. But I will miss the great Resharper UI ;)