// **************************************************************** // This is free software licensed under the NUnit license. You // may obtain a copy of the license as well as information regarding // copyright ownership at http://nunit.org/?p=license&r=2.4. // **************************************************************** namespace NUnit.Framework { using System; /// /// Attribute used to mark a test that is to be ignored. /// Ignored tests result in a warning message when the /// tests are run. /// [AttributeUsage(AttributeTargets.Method|AttributeTargets.Class|AttributeTargets.Assembly, AllowMultiple=false)] public class IgnoreAttribute : Attribute { private string reason; /// /// Constructs the attribute without giving a reason /// for ignoring the test. /// public IgnoreAttribute() { this.reason = ""; } /// /// Constructs the attribute giving a reason for ignoring the test /// /// The reason for ignoring the test public IgnoreAttribute(string reason) { this.reason = reason; } /// /// The reason for ignoring a test /// public string Reason { get { return reason; } } } }