I have the need to stub non-virtual code which led me to play with
Microsoft Moles. I am still trying to use Rhino Mocks, but
unfortunately I'm running into this exception on SOME computers:

Test method
Proficy.SmartGrid.Data.HeadEnd.MoleTests.MoleSampleTests.TestReadMeters
threw exception:
System.TypeInitializationException: The type initializer for
'Rhino.Mocks.MockRepository' threw an exception. --->
System.Security.VerificationException: Operation could destabilize the
runtime.
at Rhino.Mocks.MockRepository..cctor()
--- End of inner exception stack trace ---
at Rhino.Mocks.MockRepository..ctor()
at
Proficy.SmartGrid.Data.HeadEnd.MoleTests.MoleSampleTests.TestReadMeters()
in MoleSampleTests.cs: line 31

I have not been able to determine if it is a hot fix, OS, or a version
difference, etc. between those computers where it works or doesn't.

At this point I am not sure what else to do. I have not found a
working solution on the web either.

Have you encountered this?

-- 
You received this message because you are subscribed to the Google Groups 
"Rhino.Mocks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rhinomocks?hl=en.

Reply via email to