IgnoreAttribute Class
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.
This attribute is used to ignore a test class or a test method, with an optional message.
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false)]
public sealed class IgnoreAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method)]
public sealed class IgnoreAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, Inherited=false)]
public sealed class IgnoreAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, Inherited=false)]
public sealed class IgnoreAttribute : Microsoft.VisualStudio.TestTools.UnitTesting.ConditionBaseAttribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false)>]
type IgnoreAttribute = class
inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method)>]
type IgnoreAttribute = class
inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, Inherited=false)>]
type IgnoreAttribute = class
inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, Inherited=false)>]
type IgnoreAttribute = class
inherit ConditionBaseAttribute
Public NotInheritable Class IgnoreAttribute
Inherits Attribute
Public NotInheritable Class IgnoreAttribute
Inherits ConditionBaseAttribute
- Inheritance
-
IgnoreAttribute
- Inheritance
- Attributes
Remarks
This attribute isn't inherited. Applying it to a base class will not cause derived classes to be ignored.
Constructors
IgnoreAttribute() |
Initializes a new instance of the IgnoreAttribute class with an empty message. |
IgnoreAttribute(String) |
Initializes a new instance of the IgnoreAttribute class. |
Properties
GroupName |
Gets the group name for this attribute. This is relevant when multiple attributes that inherit ConditionBaseAttribute are present. The ShouldRun values of attributes in the same group are "OR"ed together. While the value from different groups is "AND"ed together. In other words, a test will be ignored if any group has all its ShouldRun values as false. |
IgnoreMessage |
Gets the ignore message indicating the reason for ignoring the test method or test class. |
ShouldRun |
Gets a value indicating whether the test method or test class should be ignored. |
Applies to
.NET