PexCreatableByMethodAndSettersAttribute Class

Definition

Attribute to define how instances of a particular type can be created by using property setters and setter methods to set field values, matching up fields and property/method names using a regular expression.

public ref class PexCreatableByMethodAndSettersAttribute : Microsoft::Pex::Framework::Creatable::PexCreatableByMethodAndSettersAttributeBase
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)]
public class PexCreatableByMethodAndSettersAttribute : Microsoft.Pex.Framework.Creatable.PexCreatableByMethodAndSettersAttributeBase
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)>]
type PexCreatableByMethodAndSettersAttribute = class
    inherit PexCreatableByMethodAndSettersAttributeBase
Public Class PexCreatableByMethodAndSettersAttribute
Inherits PexCreatableByMethodAndSettersAttributeBase
Inheritance
Derived
Attributes

Constructors

PexCreatableByMethodAndSettersAttribute(Type, String, Boolean, Type, String, String[])

Creates an instance of this type.

PexCreatableByMethodAndSettersAttribute(Type, String, String, Boolean, Type, String, String[])

Creates an instance of this type.

Properties

CreatableTypeDefinition

Gets the type to be created.

(Inherited from PexCreatableAttributeBase)
MaySetRemainingFieldsByReflection

Whether fields which are not handled explicitly by this attribute may be set by reflection. Use with care.

(Inherited from PexCreatableByMethodAndSettersAttributeBase)
Name

Gets the name of this package.

(Inherited from PexExplorationPackageAttributeBase)

Methods

AfterExploration(IPexExplorationComponent, Object)

Callback that is executed after the exploration ends.

(Inherited from PexExplorationPackageAttributeBase)
BeforeExploration(IPexExplorationComponent)

Callback that is executed before the exploration starts.

(Inherited from PexCreatableAttributeBase)
Decorate(Name, IPexDecoratedComponentElement)

This method can announce filters, focuses, and packages to IntelliTest.

(Inherited from PexExplorationPackageAttributeBase)
Initialize(IPexExplorationEngine)

Initializes the specified exploration package. May interact with services.

(Inherited from PexExplorationPackageAttributeBase)
Load(IContainer)

This method provides the opportunity install or substitute services.

(Inherited from PexExplorationPackageAttributeBase)
ToString()

Returns a String that represents the current Object.

(Inherited from PexCreatableAttributeBase)
TryInstantiate(IPexExplorationComponent, TypeEx[], IPexCreatable)

Tries to instantiate this definition with the specified arguments.

Validate(IPexLog, ICustomAttributeProviderEx, VisibilityContext)

Validates the attribute in a particular visibility context.

Explicit Interface Implementations

IPexComponentElementDecorator.Decorate(Name, IPexDecoratedComponentElement) (Inherited from PexComponentElementDecoratorAttributeBase)
IPexExplorationPackage.AfterExploration(IPexExplorationComponent, Object) (Inherited from PexExplorationPackageAttributeBase)
IPexExplorationPackage.BeforeExploration(IPexExplorationComponent) (Inherited from PexExplorationPackageAttributeBase)
IPexExplorationPackage.Initialize(IPexExplorationEngine) (Inherited from PexExplorationPackageAttributeBase)
IPexExplorationPackage.Load(IContainer) (Inherited from PexExplorationPackageAttributeBase)
IPexValidatable.Validate(IPexLog, ICustomAttributeProviderEx, VisibilityContext) (Inherited from PexComponentElementDecoratorAttributeBase)

Applies to