Edit

Share via


IgnoreAttribute Class

Definition

Attribute used to mark a test that is to be ignored. Ignored tests result in a warning message when the tests are run.

[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)]
public class IgnoreAttribute : NUnit.Framework.NUnitAttribute, NUnit.Framework.Internal.IApplyToTest
type IgnoreAttribute = class
    inherit NUnitAttribute
    interface IApplyToTest
Inheritance
IgnoreAttribute
Attributes
Implements

Constructors

IgnoreAttribute()

Constructs the attribute without giving a reason for ignoring the test.

IgnoreAttribute(String)

Constructs the attribute giving a reason for ignoring the test

Methods

ApplyToTest(Test)

Applies to