简体   繁体   中英

Is there a mocking framework that works with the .NET Client Profile?

I have a somewhat exotic use case for a mocking framework. I would like to generate stub objects to be used by the WinForms designer in my client application. The point is to enable dependency injection using a static service locator, while retaining drag-and-drop designer functionality.

Unfortunately, all of the mocking frameworks I've tried require me to switch my application to use the full .NET framework profile.

I'm wondering if there's any that work with the Client Profile. Something tells me that there might not be any - is there any inherent limitation to the Client Profile that makes it impossible to generate classes?

最终,我认为这将很快变得无关紧要,因为.NET 4.5不再在客户端和完整配置文件之间划分。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM