Mocking frameworks for WinRT?

Viewed 2857

It feels like I've got to be missing something, but I haven't been able to find any mock-object frameworks I can use when I'm writing unit tests for my WinRT code. Are there any WinRT-capable mocking frameworks out there?

I'm aware of MoqRT, but as far as I can tell, it does codegen at build time (though via a fragile-sounding integration that's not quite part of the actual build process), but it feels more like a hack than an implementation.

DynamicMethod (the class behind Lightweight Code Generation) apparently isn't available in WinRT. But expression trees do seem to be supported, including their Compile method; so it seems like a mock-object framework should be doable, probably.

Are there any WinRT mocking frameworks out there?

3 Answers
Related