PexMethodAttribute 类

定义

将方法标识为 IntelliTest 的参数化单元测试。

public ref class PexMethodAttribute sealed : Microsoft::Pex::Framework::PexExplorationAttributeBase
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)]
[System.Serializable]
public sealed class PexMethodAttribute : Microsoft.Pex.Framework.PexExplorationAttributeBase
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)>]
[<System.Serializable>]
type PexMethodAttribute = class
    inherit PexExplorationAttributeBase
Public NotInheritable Class PexMethodAttribute
Inherits PexExplorationAttributeBase
继承
属性

构造函数

PexMethodAttribute()

属性

ActiveSettings

获取已设置的设置名称的列表

(继承自 PexSettingsStoreAttributeBase)
Categories

一个指定装置类别的命名参数。

(继承自 PexSettingsAttributeBase)
ContainsSettings

获取一个值,该值指示此实例是否拥有已经过设置的设置。

(继承自 PexSettingsStoreAttributeBase)
DisableObservableAssertions

一个命名参数,用于指定是否不应断言观察到的值

(继承自 PexSettingsAttributeBase)
DisablePostAnalysis

一个指定是否禁用后期分析的命名参数。

(继承自 PexSettingsAttributeBase)
IncludeNonFinalSegmentCoverage

一个命名参数,用于指定 IntelliTest 是否应在覆盖率报告中包括非最终段覆盖率,以及确定是否发出测试。

(继承自 PexSettingsAttributeBase)
MaxBranches

一个命名参数,用于指定可沿单个执行路径使用的最大分支数。

(继承自 PexSettingsAttributeBase)
MaxCalls

一个命名参数,用于指定探索期间的最大方法调用数。

(继承自 PexSettingsAttributeBase)
MaxConditions

一个命名参数,用于指定可在单个执行路径期间检查的最大输入条件数。

(继承自 PexSettingsAttributeBase)
MaxConstraintSolverMemory

一个命名参数,用于指定约束求解器的内存限制。

(继承自 PexSettingsAttributeBase)
MaxConstraintSolverTime

一个命名参数,用于指定约束求解器的超时值。

(继承自 PexSettingsAttributeBase)
MaxExceptions

一个命名参数,用于指定停止前的最大新异常数。

(继承自 PexSettingsAttributeBase)
MaxExecutionTreeNodes

一个命名参数,用于指定最大执行树节点数。

(继承自 PexSettingsAttributeBase)
MaxRuns

一个命名参数,用于指定探索期间将尝试的最大运行数。

(继承自 PexSettingsAttributeBase)
MaxRunsWithoutNewTests

一个命名参数,用于指定以下对象的最大数目:

(继承自 PexSettingsAttributeBase)
MaxRunsWithUniquePaths

指定 IntelliTest 将尝试的最大运行次数的命名参数,这将导致不同的执行路径。

(继承自 PexSettingsAttributeBase)
MaxSequenceLength

一个命名参数,用于指定执行后可构造给定类型对象的最大方法调用数。

(继承自 PexSettingsAttributeBase)
MaxStack

一个命名参数,用于指定探索期间的最大堆栈大小

(继承自 PexSettingsAttributeBase)
MaxWorkingSet

一个命名参数,用于指定最大工作集。

(继承自 PexSettingsAttributeBase)
NoSoftSubstitutions

实验。

(继承自 PexSettingsAttributeBase)
NotReproducible

一个命名参数,用于指定是否不可重现生成的测试

(继承自 PexSettingsAttributeBase)
ObserveChoices

一个值,该值指示是否应在参数表中观察到选择。

(继承自 PexSettingsAttributeBase)
Owner

所生成测试的所有者(如果有且测试框架支持)。

(继承自 PexSettingsAttributeBase)
Priority

所生成测试的优先级(如果测试框架支持)

(继承自 PexSettingsAttributeBase)
SupportedPlatform

指定此测试支持的位数

(继承自 PexExplorationAttributeBase)
TestClassName

一个命名参数,用于指定测试类名称的格式字符串。

(继承自 PexSettingsAttributeBase)
TestEmissionBranchHits

一个命名参数,用于指定在分支范围增加时 IntelliTest 是否可以发出新的测试用例,考虑分支的点击频率,此选项上限。

(继承自 PexSettingsAttributeBase)
TestEmissionFilter

指定 IntelliTest 应在其上生成测试用例的指定地面的命名参数。

(继承自 PexSettingsAttributeBase)
TestExcludePathBoundsExceeded

一个命名参数,用于指定是否忽略超过 MaxCallsMaxBranchesMaxConditions 的执行路径。

(继承自 PexSettingsAttributeBase)
ThreadApartmentState

一个命名参数,用于指定测试线程应处于的单元状态。

(继承自 PexSettingsAttributeBase)
Timeout

一个用于指定探索超时值的命名参数。

(继承自 PexSettingsAttributeBase)

方法

Clone()

克隆此实例。

(继承自 PexExplorationAttributeBase)
CopyValues(PexSettingsStoreAttributeBase)

将值复制到 attribute

(继承自 PexSettingsStoreAttributeBase)
CreateEmptyClone()

创建属性的空克隆

(继承自 PexExplorationAttributeBase)
GetBooleanValue(String)

获取布尔值。

(继承自 PexSettingsStoreAttributeBase)
GetEnumValue<T>(String, T)

获取枚举值。

(继承自 PexSettingsStoreAttributeBase)
GetInt32Value(String, Int32)

获取整数值。

(继承自 PexSettingsStoreAttributeBase)
GetStringValue(String, String)

获取字符串值。

(继承自 PexSettingsStoreAttributeBase)
GetValue<T>(String)

获取一个值

(继承自 PexSettingsStoreAttributeBase)
GetValue<T>(String, T)

获取一个值

(继承自 PexSettingsStoreAttributeBase)
IntegrateSettings(PexSettingsStoreAttributeBase)

集成尚未在当前存储中设置的属性的设置

(继承自 PexSettingsStoreAttributeBase)
Lock()

锁定此实例的所有属性。

(继承自 PexSettingsStoreAttributeBase)
OverrideSettings(PexSettingsStoreAttributeBase)

重写设置。

(继承自 PexSettingsStoreAttributeBase)
SetValue(String, Object)

设置值。

(继承自 PexSettingsStoreAttributeBase)
ToCustomAttribute()

创建自定义属性

(继承自 PexSettingsStoreAttributeBase)
TryGetValue(String, Object)

尝试查询值。

(继承自 PexSettingsStoreAttributeBase)
ValidateMethod(IPexLog, MethodDefinition)

验证方法。

WriteXml(SafeSimpleXmlWriter)

将设置作为 XML 属性写入

(继承自 PexSettingsStoreAttributeBase)

适用于