MemberConditionAttribute Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| MemberConditionAttribute(Type, String) |
Initializes a new instance of the MemberConditionAttribute class with
Include semantics: the test runs only when the referenced
member evaluates to |
| MemberConditionAttribute(ConditionMode, Type, String) |
Initializes a new instance of the MemberConditionAttribute class. |
| MemberConditionAttribute(Type, String, String[]) |
Initializes a new instance of the MemberConditionAttribute class with
Include semantics: the test runs only when every referenced
member evaluates to |
| MemberConditionAttribute(ConditionMode, Type, String, String[]) |
Initializes a new instance of the MemberConditionAttribute class. |
MemberConditionAttribute(Type, String)
- Source:
- MemberConditionAttribute.cs
Initializes a new instance of the MemberConditionAttribute class with
Include semantics: the test runs only when the referenced
member evaluates to true.
public MemberConditionAttribute(Type conditionType, string conditionMemberName);
new Microsoft.VisualStudio.TestTools.UnitTesting.MemberConditionAttribute : Type * string -> Microsoft.VisualStudio.TestTools.UnitTesting.MemberConditionAttribute
Public Sub New (conditionType As Type, conditionMemberName As String)
Parameters
- conditionType
- Type
The type declaring the static member to evaluate.
- conditionMemberName
- String
The name of the publicstaticBoolean member
(property, field, or parameterless method) to evaluate.
Applies to
MemberConditionAttribute(ConditionMode, Type, String)
- Source:
- MemberConditionAttribute.cs
Initializes a new instance of the MemberConditionAttribute class.
public MemberConditionAttribute(Microsoft.VisualStudio.TestTools.UnitTesting.ConditionMode mode, Type conditionType, string conditionMemberName);
new Microsoft.VisualStudio.TestTools.UnitTesting.MemberConditionAttribute : Microsoft.VisualStudio.TestTools.UnitTesting.ConditionMode * Type * string -> Microsoft.VisualStudio.TestTools.UnitTesting.MemberConditionAttribute
Public Sub New (mode As ConditionMode, conditionType As Type, conditionMemberName As String)
Parameters
- mode
- ConditionMode
Whether the test should be included (run when the condition is met) or excluded (skipped when the condition is met).
- conditionType
- Type
The type declaring the static member to evaluate.
- conditionMemberName
- String
The name of the publicstaticBoolean member
(property, field, or parameterless method) to evaluate.
Applies to
MemberConditionAttribute(Type, String, String[])
- Source:
- MemberConditionAttribute.cs
Initializes a new instance of the MemberConditionAttribute class with
Include semantics: the test runs only when every referenced
member evaluates to true.
public MemberConditionAttribute(Type conditionType, string conditionMemberName, params string[] additionalConditionMemberNames);
new Microsoft.VisualStudio.TestTools.UnitTesting.MemberConditionAttribute : Type * string * string[] -> Microsoft.VisualStudio.TestTools.UnitTesting.MemberConditionAttribute
Public Sub New (conditionType As Type, conditionMemberName As String, ParamArray additionalConditionMemberNames As String())
Parameters
- conditionType
- Type
The type declaring the static member(s) to evaluate.
- conditionMemberName
- String
The name of the first publicstaticBoolean
member (property, field, or parameterless method) to evaluate.
- additionalConditionMemberNames
- String[]
Additional publicstaticBoolean member
name(s) to evaluate. All referenced members are AND-combined.
Applies to
MemberConditionAttribute(ConditionMode, Type, String, String[])
- Source:
- MemberConditionAttribute.cs
Initializes a new instance of the MemberConditionAttribute class.
public MemberConditionAttribute(Microsoft.VisualStudio.TestTools.UnitTesting.ConditionMode mode, Type conditionType, string conditionMemberName, params string[] additionalConditionMemberNames);
new Microsoft.VisualStudio.TestTools.UnitTesting.MemberConditionAttribute : Microsoft.VisualStudio.TestTools.UnitTesting.ConditionMode * Type * string * string[] -> Microsoft.VisualStudio.TestTools.UnitTesting.MemberConditionAttribute
Public Sub New (mode As ConditionMode, conditionType As Type, conditionMemberName As String, ParamArray additionalConditionMemberNames As String())
Parameters
- mode
- ConditionMode
Whether the test should be included (run when the condition is met) or excluded (skipped when the condition is met).
- conditionType
- Type
The type declaring the static member(s) to evaluate.
- conditionMemberName
- String
The name of the first publicstaticBoolean
member (property, field, or parameterless method) to evaluate.
- additionalConditionMemberNames
- String[]
Additional publicstaticBoolean member
name(s) to evaluate. All referenced members are AND-combined.