1 using System;
2 
3 namespace NUnit.Framework
4 {
5 	/// <summary>
6 	/// Attribute used to provide descriptive text about a
7 	/// test case or fixture.
8 	/// </summary>
9 	[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method|AttributeTargets.Assembly, AllowMultiple=false)]
10 	public class DescriptionAttribute : Attribute
11 	{
12 		string description;
13 
14 		/// <summary>
15 		/// Construct the attribute
16 		/// </summary>
17 		/// <param name="description">Text describing the test</param>
DescriptionAttribute(string description)18 		public DescriptionAttribute(string description)
19 		{
20 			this.description=description;
21 		}
22 
23 		/// <summary>
24 		/// Gets the test description
25 		/// </summary>
26 		public string Description
27 		{
28 			get { return description; }
29 		}
30 	}
31 }
32