1 // ****************************************************************
\r
2 // This is free software licensed under the NUnit license. You
\r
3 // may obtain a copy of the license as well as information regarding
\r
4 // copyright ownership at http://nunit.org/?p=license&r=2.4.
\r
5 // ****************************************************************
\r
7 namespace NUnit.Framework
\r
12 /// Attribute used to mark a test that is to be ignored.
\r
13 /// Ignored tests result in a warning message when the
\r
16 [AttributeUsage(AttributeTargets.Method|AttributeTargets.Class|AttributeTargets.Assembly, AllowMultiple=false)]
\r
17 public class IgnoreAttribute : Attribute
\r
19 private string reason;
\r
22 /// Constructs the attribute without giving a reason
\r
23 /// for ignoring the test.
\r
25 public IgnoreAttribute()
\r
31 /// Constructs the attribute giving a reason for ignoring the test
\r
33 /// <param name="reason">The reason for ignoring the test</param>
\r
34 public IgnoreAttribute(string reason)
\r
36 this.reason = reason;
\r
40 /// The reason for ignoring a test
\r
42 public string Reason
\r
44 get { return reason; }
\r