共用方式為


PexCrossProductExplorableStrategyAttribute Class

Definition

Generates a sequence of test from a systematic cross-product of api calls. This is the default strategy.

public ref class PexCrossProductExplorableStrategyAttribute sealed : Microsoft::Pex::Framework::Explorable::PexExplorableStrategyAttributeBase
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true)]
public sealed class PexCrossProductExplorableStrategyAttribute : Microsoft.Pex.Framework.Explorable.PexExplorableStrategyAttributeBase
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true)>]
type PexCrossProductExplorableStrategyAttribute = class
    inherit PexExplorableStrategyAttributeBase
Public NotInheritable Class PexCrossProductExplorableStrategyAttribute
Inherits PexExplorableStrategyAttributeBase
Inheritance
Attributes

Constructors

PexCrossProductExplorableStrategyAttribute()

Creates a product explorable strategy that applies to all types.

PexCrossProductExplorableStrategyAttribute(Type, String[])

Creates a product explorable strategy that applies to a set of (possibly generic) types.

PexCrossProductExplorableStrategyAttribute(Type[])

Creates a product explorable strategy that applies to a set of (possibly generic) types.

Properties

MaxLength

Gets or sets the maximum sequence length.

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 PexExplorableStrategyAttributeBase)
CanCreateSession(TypeEx)

Determines whether this instance can create a session of the specified type.

CreateSession(IPexExplorationComponent, TypeEx)

Creates a new session.

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)
Validate(IPexLog, ICustomAttributeProviderEx, VisibilityContext)

Validates the attribute in a particular visibility context.

(Inherited from PexComponentElementDecoratorAttributeBase)

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