开发者

workaround pex internal class

开发者 https://www.devze.com 2023-01-05 18:35 出处:网络
Is there any way to make pex work when the classes under test are internal? how about sealed classe开发者_运维百科s?

Is there any way to make pex work when the classes under test are internal? how about sealed classe开发者_运维百科s?

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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消