/Utilities/FakeNUnitFramework/CategoryAttribute.cs
C# | 47 lines | 26 code | 4 blank | 17 comment | 0 complexity | 592e5d3a8faf53e709ca94abd4ecd067 MD5 | raw file
Possible License(s): Apache-2.0
- using System;
-
- namespace NUnit.Framework
- {
- /// <summary>
- /// Nothing is in here, this is just a fake class to help tools to detect
- /// unit tests. Helper to simulate NUnit unit tests to be detected by test
- /// unit runners like ReSharper. TestDriven.NET however requires that a
- /// supported NUnit.Framework.dll is used, which is too much hassle for us,
- /// but you can easily do it if you like.
- /// </summary>
- [AttributeUsage(AttributeTargets.Method | AttributeTargets.Class |
- AttributeTargets.Assembly, AllowMultiple = true)]
- public class CategoryAttribute : Attribute
- {
- #region Constants
- /// <summary>
- /// Tests in the categories "LongRunning" and "Visual" will be excluded,
- /// they should not be run automatically, see
- /// http://DeltaEngine.net/Wiki.CodingConventions
- /// </summary>
- public const string LongRunning = "LongRunning";
-
- /// <summary>
- /// Tests in the categories "LongRunning" and "Visual" will be excluded,
- /// they should not be run automatically (same goes for "Static" or
- /// "Integration"), see http://DeltaEngine.net/Wiki.CodingConventions
- /// </summary>
- public const string Visual = "Visual";
- #endregion
-
- #region Name (Public)
- public string Name
- {
- get;
- set;
- }
- #endregion
-
- #region Constructors
- public CategoryAttribute(string setCategoryName)
- {
- Name = setCategoryName;
- }
- #endregion
- }
- }