Any idea how I can run Intellitests on “internal” classes

久未见 提交于 2019-12-11 10:56:28

问题


I'm building a library that will be a part of a number of libraries that will be used by an umbrella library to which they all are built with an internalsVisibleTo("{umbrella-library}").

I would like to explore the libraries I'm building with the new Microsoft Intellitest, but seems it doesn't work on internal classes because the methods are not publicly visible (even though they are singularly public).

Any suggestion?


回答1:


Here is how to use IntelliTest to explore internal types: (1) Invoke the "Create IntelliTest" command on the desired method first so that a test project with the required PUT and attributes are emitted. (2) Next, invoke the Run IntelliTest command either on the desired method or the (just emitted) PUT as usual.

Please see this post (http://blogs.msdn.com/b/visualstudioalm/archive/2015/07/25/unit-test-generators-extensibility-hats-off-to-our-community.aspx) for rationale.



来源:https://stackoverflow.com/questions/32669578/any-idea-how-i-can-run-intellitests-on-internal-classes

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