Sunday, March 27, 2011

Are there any mocking libraries that support the .NET Compact Framwork.

I was just wondering if anyone has found a mocking library that can be used with the .NET compact framwork.

I have tried Moq but it doesn't seem to work, I did a quick Google search but couldn't find anything useful.

Thanks.

From stackoverflow
  • Unfortunately the .Net CF doesn't support IL emit, or compilation (via CSharpCodeProvider or such). The better mocking frameworks use IL emit, the older ones use CSharpCodeProvider - both of which are not in the CF.

    I would venture to say that it is impossible to write a CF mocking framework (unless someone ports Cecil to CF and uses that to create assemblies on the storage card, and then loads those up dynamically).

  • The answers to this question may be of use as well.

0 comments:

Post a Comment