Add a more functional (i.e. fewer-stubs) implementation of System.Data.Linq.
[mono.git] / mcs / nunit24 / NUnitFramework / framework / TestAttribute.cs
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
6 \r
7 namespace NUnit.Framework\r
8 {\r
9         using System;\r
10 \r
11         /// <summary>\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
16         /// </summary>\r
17         /// \r
18         /// <example>\r
19         /// [TestFixture]\r
20         /// public class Fixture\r
21         /// {\r
22         ///   [Test]\r
23         ///   public void MethodToTest()\r
24         ///   {}\r
25         ///   \r
26         ///   [Test(Description = "more detailed description")]\r
27         ///   publc void TestDescriptionMethod()\r
28         ///   {}\r
29         /// }\r
30         /// </example>\r
31         /// \r
32         [AttributeUsage(AttributeTargets.Method, AllowMultiple=false)]\r
33         public class TestAttribute : Attribute\r
34         {\r
35                 private string description;\r
36 \r
37                 /// <summary>\r
38                 /// Descriptive text for this test\r
39                 /// </summary>\r
40                 public string Description\r
41                 {\r
42                         get { return description; }\r
43                         set { description = value; }\r
44                 }\r
45         }\r
46 }\r