Compartir a través de


PexAssumeNotNullAttribute Class

Definition

The test fails if the specified parameter is a null reference.

public ref class PexAssumeNotNullAttribute sealed : Microsoft::Pex::Framework::PexAssumeAttributeBase
[System.AttributeUsage(System.AttributeTargets.All, AllowMultiple=true, Inherited=true)]
public sealed class PexAssumeNotNullAttribute : Microsoft.Pex.Framework.PexAssumeAttributeBase
[<System.AttributeUsage(System.AttributeTargets.All, AllowMultiple=true, Inherited=true)>]
type PexAssumeNotNullAttribute = class
    inherit PexAssumeAttributeBase
Public NotInheritable Class PexAssumeNotNullAttribute
Inherits PexAssumeAttributeBase
Inheritance
Attributes

Remarks

This attribute provides a convenient alternative to IsNotNull(Object) and related overloads.

Constructors

PexAssumeNotNullAttribute()

A constructor to be used only on target declarations.

PexAssumeNotNullAttribute(Type, String)

A constructor for a specified type and public field.

PexAssumeNotNullAttribute(Type)

A constructor for a specified type

Properties

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 PexDomainAttributeBase)
Decorate(Name, IPexDecoratedComponentElement)

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

(Inherited from PexExplorationPackageAttributeBase)
GetPreciseType(TypeEx, ICopyable<TypeEx>, Boolean)

Checks a list of types compatible with this domain.

(Inherited from PexAssumeAttributeBase)
GetTargetType()

Gets the type of the target.

(Inherited from PexDomainAttributeBase)
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)
MatchesTarget(PexDomainTarget, MetadataEntity, Int32)

Checks whether the target of this attribute matches a given target.

(Inherited from PexDomainAttributeBase)
TryGetInvariant(IPexExplorationComponent, Layout, Converter<Term,Term>)

Tries to get an invariant.

UpdateTarget(PexDomainTarget, MetadataEntity, Int32)

Updates the target of this domain.

(Inherited from PexDomainAttributeBase)
Validate(IPexLog, ICustomAttributeProviderEx, VisibilityContext)

Validates the attribute in a particular visibility context.

(Inherited from PexComponentElementDecoratorAttributeBase)
ValidateTargetIsDefined(IPexLog, Name)

Validates that the target is defined.

(Inherited from PexAssumeAttributeBase)
ValidateTargetIsNotNull(IPexLog, Name)

Validates this attribute in the case that the target may not be null.

(Inherited from PexAssumeAttributeBase)

Explicit Interface Implementations

IPexComponentElementDecorator.Decorate(Name, IPexDecoratedComponentElement) (Inherited from PexComponentElementDecoratorAttributeBase)
IPexDomainProvider.AddDomains(SafeList<IPexDomain>, PexDomainTarget, MetadataEntity, Int32) (Inherited from PexDomainAttributeBase)
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)
IPexTargetedDomainProvider.Validate(IPexLog, ICustomAttributeProviderEx, VisibilityContext) (Inherited from PexDomainAttributeBase)
IPexValidatable.Validate(IPexLog, ICustomAttributeProviderEx, VisibilityContext) (Inherited from PexComponentElementDecoratorAttributeBase)

Applies to