3

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

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

Thanks.

Martin Buberl
  • 45,844
  • 25
  • 100
  • 144
Nathan W
  • 54,475
  • 27
  • 99
  • 146

2 Answers2

1

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).

Jonathan C Dickinson
  • 7,181
  • 4
  • 35
  • 46
1

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

Community
  • 1
  • 1
ctacke
  • 66,480
  • 18
  • 94
  • 155