Unit Test Runner in Resharper 8 fails with SerializationException -> Nhibernate

I have tests that pass in the Nunit test runner. They also pass in resharper 7 but since I have upgraded to resharper 8 I recieve the following error during the test:

NHibernate.Exceptions.GenericADOException : could not execute query
[ SELECT count(*) as y0_ FROM SystemRoles this_ WHERE this_.Type=1 AND this_.UserId = ? ]
  Name:cp0 - Value:1995240263 1995240263, (1995240263@q.com)
[SQL: SELECT count(*) as y0_ FROM SystemRoles this_ WHERE this_.Type=1 AND this_.UserId = ?]
  ----> System.Runtime.Serialization.SerializationException : Unable to find assembly 'NHibernate, Version=3.3.1.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4'.

0
5 comments
Avatar
Permanently deleted user

Seeing this same issue with other assemblies in our solution, not nhibernate (although our solution does use nhibernate). Test runner was working just fine in Resharper 7 with these nunit tests.

0

I had to downgrade back to version 7. The only way I was sure that it was Resharper 8 was that the same tests ran fine in the Nunit runner.

0
Avatar
Permanently deleted user

I had to so the same and they are working fine again.

0

Could it be related to LogicalSetData?

My experience has been similar -- R# 7.1 test runner works fine, but R# 8 fails with serialization exception. I tracked it down to Trace.Write* calls if a non-serializable object is added using LogicalSetData.

I reported it here:

http://youtrack.jetbrains.com/issue/RSRP-379432

If you think this is the cause of your failure as well, please upvote...

0

Same error! I just voted it up.

thanks

0

Please sign in to leave a comment.