1 // ****************************************************************
\r
2 // Copyright 2007, Charlie Poole
\r
3 // This is free software licensed under the NUnit license. You may
\r
4 // obtain a copy of the license at http://nunit.org/?p=license&r=2.4
\r
5 // ****************************************************************
\r
9 namespace NUnit.Framework
\r
12 /// ExplicitAttribute marks a test or test fixture so that it will
\r
13 /// only be run if explicitly executed from the gui or command line
\r
14 /// or if it is included by use of a filter. The test will not be
\r
15 /// run simply because an enclosing suite is run.
\r
17 [AttributeUsage(AttributeTargets.Class|AttributeTargets.Method|AttributeTargets.Assembly, AllowMultiple=false)]
\r
18 public class ExplicitAttribute : Attribute
\r
20 private string reason;
\r
23 /// Default constructor
\r
25 public ExplicitAttribute()
\r
31 /// Constructor with a reason
\r
33 /// <param name="reason">The reason test is marked explicit</param>
\r
34 public ExplicitAttribute(string reason)
\r
36 this.reason = reason;
\r
40 /// The reason test is marked explicit
\r
42 public string Reason
\r
44 get { return reason; }
\r