PageRenderTime 343ms CodeModel.GetById 121ms app.highlight 74ms RepoModel.GetById 147ms app.codeStats 0ms

/Utilities/FakeNUnitFramework/CategoryAttribute.cs

#
C# | 47 lines | 26 code | 4 blank | 17 comment | 0 complexity | 592e5d3a8faf53e709ca94abd4ecd067 MD5 | raw file
 1using System;
 2
 3namespace NUnit.Framework
 4{
 5	/// <summary>
 6	/// Nothing is in here, this is just a fake class to help tools to detect
 7	/// unit tests. Helper to simulate NUnit unit tests to be detected by test
 8	/// unit runners like ReSharper. TestDriven.NET however requires that a
 9	/// supported NUnit.Framework.dll is used, which is too much hassle for us,
10	/// but you can easily do it if you like.
11	/// </summary>
12	[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class |
13	                AttributeTargets.Assembly, AllowMultiple = true)]
14	public class CategoryAttribute : Attribute
15	{
16		#region Constants
17		/// <summary>
18		/// Tests in the categories "LongRunning" and "Visual" will be excluded,
19		/// they should not be run automatically, see
20		/// http://DeltaEngine.net/Wiki.CodingConventions
21		/// </summary>
22		public const string LongRunning = "LongRunning";
23
24		/// <summary>
25		/// Tests in the categories "LongRunning" and "Visual" will be excluded,
26		/// they should not be run automatically (same goes for "Static" or
27		/// "Integration"), see http://DeltaEngine.net/Wiki.CodingConventions
28		/// </summary>
29		public const string Visual = "Visual";
30		#endregion
31
32		#region Name (Public)
33		public string Name
34		{
35			get;
36			set;
37		}
38		#endregion
39
40		#region Constructors
41		public CategoryAttribute(string setCategoryName)
42		{
43			Name = setCategoryName;
44		}
45		#endregion
46	}
47}