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 /// Adding this attribute to a method within a <seealso cref="TestFixtureAttribute"/>
\r
13 /// class makes the method callable from the NUnit test runner. There is a property
\r
14 /// called Description which is optional which you can provide a more detailed test
\r
15 /// description. This class cannot be inherited.
\r
20 /// public class Fixture
\r
23 /// public void MethodToTest()
\r
26 /// [Test(Description = "more detailed description")]
\r
27 /// publc void TestDescriptionMethod()
\r
32 [AttributeUsage(AttributeTargets.Method, AllowMultiple=false)]
\r
33 public class TestAttribute : Attribute
\r
35 private string description;
\r
38 /// Descriptive text for this test
\r
40 public string Description
\r
42 get { return description; }
\r
43 set { description = value; }
\r