32 lines
732 B
C#
Raw Normal View History

using System;
namespace NUnit.Framework
{
/// <summary>
/// Attribute used to provide descriptive text about a
/// test case or fixture.
/// </summary>
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method|AttributeTargets.Assembly, AllowMultiple=false)]
public class DescriptionAttribute : Attribute
{
string description;
/// <summary>
/// Construct the attribute
/// </summary>
/// <param name="description">Text describing the test</param>
public DescriptionAttribute(string description)
{
this.description=description;
}
/// <summary>
/// Gets the test description
/// </summary>
public string Description
{
get { return description; }
}
}
}