ArchitectureConditionAttribute Class

Definition

This attribute is used to ignore a test class or a test method based on the current process architecture.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)]
[System.Runtime.CompilerServices.Nullable(0)]
public sealed class ArchitectureConditionAttribute : Microsoft.VisualStudio.TestTools.UnitTesting.ConditionBaseAttribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type ArchitectureConditionAttribute = class
    inherit ConditionBaseAttribute
Public NotInheritable Class ArchitectureConditionAttribute
Inherits ConditionBaseAttribute
Inheritance
ArchitectureConditionAttribute
Attributes

Remarks

This attribute isn't inherited. Applying it to a base class will not cause derived classes to be ignored. It can be combined with OSConditionAttribute (or any other condition attribute) to gate a test on both the operating system and the process architecture, because condition attributes that expose a different GroupName are combined with a logical AND.

Constructors

Name Description
ArchitectureConditionAttribute(ConditionMode, TestArchitectures)

Initializes a new instance of the ArchitectureConditionAttribute class.

ArchitectureConditionAttribute(TestArchitectures)

Initializes a new instance of the ArchitectureConditionAttribute class.

Properties

Name Description
GroupName

Gets the group name for this attribute.

IgnoreMessage

Gets or sets the ignore message indicating the reason for ignoring the test method or test class.

(Inherited from ConditionBaseAttribute)
IsConditionMet

Gets a value indicating whether the test method or test class should be ignored.

Mode

Gets the condition mode.

(Inherited from ConditionBaseAttribute)

Applies to