PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/NUnit/interfaces/Extensibility/NUnitAddinAttribute.cs

#
C# | 40 lines | 15 code | 4 blank | 21 comment | 0 complexity | bf85877936aa5ebb5b0938a20aca6af0 MD5 | raw file
 1// ****************************************************************
 2// Copyright 2007, Charlie Poole
 3// This is free software licensed under the NUnit license. You may
 4// obtain a copy of the license at http://nunit.org
 5// ****************************************************************
 6using System;
 7
 8namespace NUnit.Core.Extensibility
 9{
10	/// <summary>
11	/// NUnitAddinAttribute is used to mark all add-ins. The marked class
12	/// must implement the IAddin interface.
13	/// </summary>
14	[AttributeUsage(AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
15	public sealed class NUnitAddinAttribute : Attribute
16	{
17        /// <summary>
18        /// The name of this addin
19        /// </summary>
20		public string Name;
21
22        /// <summary>
23        /// A description for the addin
24        /// </summary>
25		public string Description;
26
27        /// <summary>
28        /// The type of extension provided
29        /// </summary>
30		public ExtensionType Type;
31
32        /// <summary>
33        /// Default Constructor
34        /// </summary>
35		public NUnitAddinAttribute()
36		{
37			this.Type = ExtensionType.Core;
38		}
39	}
40}