workaround pex internal class

2020-04-20 21:14发布

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

标签: pex
1条回答
我欲成王,谁敢阻挡
2楼-- · 2020-04-20 22:14

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

查看更多
登录 后发表回答