简体   繁体   English

Intellitest支持属性吗?

[英]Are properties supported in Intellitest?

Run IntelliTest is disabled on properties, and Create IntelliTest does not create the PexMethod. 对属性禁用Run IntelliTest ,并且“ Create IntelliTest ”不会创建PexMethod。 在此处输入图片说明

Exploring property getters/setters is not supported. 不支持探索属性获取器/设置器。 Please consider opening this as a 'feature request' on uservoice at either of the following links: https://visualstudio.uservoice.com/forums/121579-visual-studio-2015?query=IntelliTest - OR - https://visualstudio.uservoice.com/forums/330519-team-services?query=IntelliTest . 请考虑在以下任一环节上UserVoice的打开这是一个“功能要求”: https://visualstudio.uservoice.com/forums/121579-visual-studio-2015?query=IntelliTest -或- https://开头的VisualStudio .uservoice.com / forums / 330519-team-services?query = IntelliTest

[Added below information on 11 May 2016] [在2016年5月11日添加以下信息]

If a method accesses properties then IntelliTest will explore the property as part of exploring the method itself. 如果方法访问属性,则IntelliTest将探索该属性,作为探索方法本身的一部分。 However, just before release, we did find some issues when launching the Run IntelliTest and/or Create IntelliTest commands directly on property accessors. 但是,就在发行前,我们确实在直接在属性访问器上启动“运行IntelliTest”和/或“创建IntelliTest”命令时发现了一些问题。 So we decided to disable that until such time as we saw enough demand for it. 因此,我们决定禁用该功能,直到看到足够的需求为止。 However, as you have shown, it has not been disabled cleanly. 但是,正如您所显示的,它还没有被彻底禁用。

We will disable it cleanly at the next opportunity that we get to release, and here will be the behaviour you can expect: 我们将在下次发布时彻底禁用它,这是您可以预期的行为:

  • Disable launching Run IntelliTest and/or Create IntelliTest on property accessors. 在属性访问器上禁用启动运行IntelliTest和/或创建IntelliTest。
  • When doing a Run IntelliTest and/or Create IntelliTest at the class/namespace level, skip the cases where the exploration would begin at the property accessor (similar to the above). 在类/命名空间级别执行“运行IntelliTest”和/或“创建IntelliTest”时,请跳过探索将从属性访问器开始的情况(类似于上述内容)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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