PexFocusOnAssemblyAttribute 类

定义

在覆盖率报告中包括 AssemblyIncludes an Assembly in the coverage reports

public ref class PexFocusOnAssemblyAttribute : Microsoft::Pex::Framework::Focus::PexFocusOnAttributeBase
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)]
public class PexFocusOnAssemblyAttribute : Microsoft.Pex.Framework.Focus.PexFocusOnAttributeBase
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)>]
type PexFocusOnAssemblyAttribute = class
    inherit PexFocusOnAttributeBase
Public Class PexFocusOnAssemblyAttribute
Inherits PexFocusOnAttributeBase
继承
派生
属性

构造函数

PexFocusOnAssemblyAttribute(String)

初始化 PexFocusOnAssemblyAttribute 类的新实例。Initializes a new instance of the PexFocusOnAssemblyAttribute class.

PexFocusOnAssemblyAttribute(String, PexSearchPriority)

初始化 PexFocusOnAssemblyAttribute 类的新实例。Initializes a new instance of the PexFocusOnAssemblyAttribute class.

PexFocusOnAssemblyAttribute(Type)

初始化 PexFocusOnAssemblyAttribute 类的新实例。Initializes a new instance of the PexFocusOnAssemblyAttribute class.

PexFocusOnAssemblyAttribute(Type, PexSearchPriority)

初始化 PexFocusOnAssemblyAttribute 类的新实例。Initializes a new instance of the PexFocusOnAssemblyAttribute class.

属性

DoNotReportCoverage

获取一个值,该值指示其是否不应报告覆盖率。Gets a value indicating whether it should not report coverage.

(继承自 PexFocusOnAttributeBase)
Optional

获取或设置一个值,该值指示此属性的类型或程序集是否可能不存在于系统中Gets or sets a value indicating whether the types or assemblies by this attribute might not be present on the system

SearchPriority

获取或设置优先级Gets or sets the priority

(继承自 PexFocusOnAttributeBase)
TargetAssemblyName

获取目标程序集的名称。Gets the name of the target assembly.

方法

Decorate(Name, IPexDecoratedComponentElement)

使用自定义修饰器修饰组件Decorates component with custom decorators

(继承自 PexFocusOnAttributeBase)
GetUncachedIncludedAssemblies(IPexLog)

获取未缓存的包含程序集。Gets the uncached included assemblies.

GetUncachedIncludedMethods(IPexLog)

获取未缓存的包含方法。Gets the uncached included methods.

GetUncachedIncludedTypes(IPexLog)

获取未缓存的包含类型。Gets the uncached included types.

TryGetFocusedAssemblies(IPexLog, IIndexable<AssemblyEx>)

尝试获取聚焦程序集。Tries to get the focused assemblies.

(继承自 PexFocusOnAttributeBase)
TryGetFocusedMethods(IPexLog, IIndexable<MethodDefinition>)

尝试获取聚焦方法。Tries to get the focused methods.

(继承自 PexFocusOnAttributeBase)
TryGetFocusedTypes(IPexLog, IIndexable<TypeDefinition>)

获取包含的类型。Gets the included types.

(继承自 PexFocusOnAttributeBase)
Validate(IPexLog, ICustomAttributeProviderEx, VisibilityContext)

在特定可见性上下文中验证属性。Validates the attribute in a particular visibility context.

(继承自 PexComponentElementDecoratorAttributeBase)

显式接口实现

IPexComponentElementDecorator.Decorate(Name, IPexDecoratedComponentElement) (继承自 PexComponentElementDecoratorAttributeBase)
IPexValidatable.Validate(IPexLog, ICustomAttributeProviderEx, VisibilityContext) (继承自 PexComponentElementDecoratorAttributeBase)

适用于