Indicates that a specific test should not be run. This class cannot be inherited.
<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Method, AllowMultiple := False)> _ Public NotInheritable Class IgnoreAttribute _ Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false)] public sealed class IgnoreAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class|AttributeTargets::Method, AllowMultiple = false)] public ref class IgnoreAttribute sealed : public Attribute
[<Sealed>] [<AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false)>] type IgnoreAttribute = class inherit Attribute end
public final class IgnoreAttribute extends Attribute
The IgnoreAttribute type exposes the following members.
This should be used to temporarily exclude a specific test when you run a group of tests that contains it. This can be useful for not running a test that is blocking other tests from running because of errors in the code. This is better than commenting out code because the test is still compiled.
This sets the Test Enabled property of the test to false.
This attribute can be specified on a test method or class. There can be only a single instance of this attribute on a method or class.
For more information about how to use attributes, see Extending Metadata Using Attributes.