Rhino Mocks & Compact Framework

I experimented with Rhino Mocks to unit test my .Net Compact Framework application and ran into a problem. I can get the basic unit test using Rhino Mocks, but every time I run a test that has Rhino Mocks code, the test fails because it cannot find the Rhino Mocks assembly.

System.TypeLoadException: Failed to load the Rhino.Mocks.MockRepository type from the Rhino.Mocks assembly ...

I copied the rhino mocks dll to different places on the device (the folder with my application and the created SmartDeviceTest folder), but it still cannot find it.

Has anyone used rhino with a compact skeleton and can point me in the right direction? Or, if that fails, can anyone suggest a mocking infrastructure that integrates and works with a compact infrastructure?

thanks

Matt

+5
source share
2 answers

My bet is that she cannot find an addiction. IIRC, Rhino uses many parts of CompilerServices and Reflection.Emit that simply do not exist in CF, so they are probably trying to lure out when trying to generate layouts. I did not see fake frameworks that work with CF, and I watched quite a lot (and tried to port).

+4
source

: http://elegantcode.com/2009/04/29/unit-testingmocking-on-net-cf/

, RhinoMocks, Moq TypeMock .netcf. Stubs PEX ( Microsoft Research) , .

, - Mock ( Google "Mocks " )

+2

All Articles