workaround pex internal class

允我心安 提交于 2019-12-02 11:58:44

问题


Is there any way to make pex work when the classes under test are internal? how about sealed classes?

I mean after all this type of tool is really good for API testing, you are likely to want to keep stuff at least internal sometimes.

Thanks


回答1:


Give the test assembly internal visibility through the InternalsVisibleToAttribute. Pex will then be able to 'see' internal types and test them.



来源:https://stackoverflow.com/questions/3167541/workaround-pex-internal-class

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!