PexExplorableMutatorAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
一种属性,用于定义如何通过探索(参数化)实例方法来实现特定类型实例的赋值
public ref class PexExplorableMutatorAttribute : Microsoft::Pex::Framework::Packages::PexExplorationPackageAttributeBase, Microsoft::Pex::Engine::Explorable::IPexExplorableMutator, Microsoft::Pex::Engine::Explorable::IPexExplorableMutatorFactory, Microsoft::Pex::Engine::Explorable::IPexExplorableTypeMutatorProvider
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)]
public class PexExplorableMutatorAttribute : Microsoft.Pex.Framework.Packages.PexExplorationPackageAttributeBase, Microsoft.Pex.Engine.Explorable.IPexExplorableMutator, Microsoft.Pex.Engine.Explorable.IPexExplorableMutatorFactory, Microsoft.Pex.Engine.Explorable.IPexExplorableTypeMutatorProvider
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)>]
type PexExplorableMutatorAttribute = class
inherit PexExplorationPackageAttributeBase
interface IPexExplorableMutatorFactory
interface IPexExplorableTypeMutatorProvider
interface IPexExplorableMutator
Public Class PexExplorableMutatorAttribute
Inherits PexExplorationPackageAttributeBase
Implements IPexExplorableMutator, IPexExplorableMutatorFactory, IPexExplorableTypeMutatorProvider
- 继承
-
PexExplorableMutatorAttribute
- 属性
- 实现
-
Microsoft.Pex.Engine.Explorable.IPexExplorableMutator Microsoft.Pex.Engine.Explorable.IPexExplorableMutatorFactory Microsoft.Pex.Engine.Explorable.IPexExplorableTypeMutatorProvider
构造函数
属性
| ExplorableType |
获取探索要创建的类型。 |
| InstanceMethod |
获取对所需类型的实例进行赋值的方法。 |
| Name |
获取此包的名称。 (继承自 PexExplorationPackageAttributeBase) |
方法
| AfterExploration(IPexExplorationComponent, Object) |
在探索结束之后执行的回调。 (继承自 PexExplorationPackageAttributeBase) |
| BeforeExploration(IPexExplorationComponent) |
在探索开始之前执行的回调。 |
| Decorate(Name, IPexDecoratedComponentElement) |
此方法可以向 IntelliTest 公告筛选器、焦点和包。 (继承自 PexExplorationPackageAttributeBase) |
| GetExplorableMutators(Method) |
获取可探索对象赋值函数。 |
| GetMutatorProvider(IPexExplorationComponent, TypeEx) |
获取可探索对象赋值函数。 |
| Initialize(IPexExplorationEngine) |
初始化指定的探索包。 可以与服务进行交互。 (继承自 PexExplorationPackageAttributeBase) |
| Load(IContainer) |
此方法提供安装或替代服务的机会。 (继承自 PexExplorationPackageAttributeBase) |
| Validate(IPexLog, ICustomAttributeProviderEx, VisibilityContext) |
在特定可见性上下文中验证属性。 |
| ValidateInstanceMethod(IPexLog, ICustomAttributeProviderEx, VisibilityContext) |
验证实例方法。 |