PageRenderTime 19ms CodeModel.GetById 13ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/src/NUnit/framework/Attributes/RequiredAddinAttribute.cs

#
C# | 40 lines | 17 code | 4 blank | 19 comment | 0 complexity | 34261b3de5e07c42b1f4e66cf4ce4852 MD5 | raw file
 1// ****************************************************************
 2// Copyright 2008, 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// ****************************************************************
 6
 7using System;
 8
 9namespace NUnit.Framework
10{
11    /// <summary>
12    /// RequiredAddinAttribute may be used to indicate the names of any addins
13    /// that must be present in order to run some or all of the tests in an
14    /// assembly. If the addin is not loaded, the entire assembly is marked
15    /// as NotRunnable.
16    /// </summary>
17    [AttributeUsage(AttributeTargets.Assembly,AllowMultiple=true, Inherited=false)]
18    public class RequiredAddinAttribute : Attribute
19    {
20        private string requiredAddin;
21
22        /// <summary>
23        /// Initializes a new instance of the <see cref="T:RequiredAddinAttribute"/> class.
24        /// </summary>
25        /// <param name="requiredAddin">The required addin.</param>
26        public RequiredAddinAttribute(string requiredAddin)
27        {
28            this.requiredAddin = requiredAddin;
29        }
30
31        /// <summary>
32        /// Gets the name of required addin.
33        /// </summary>
34        /// <value>The required addin name.</value>
35        public string RequiredAddin
36        {
37            get { return requiredAddin; }
38        }
39    }
40}