PageRenderTime 41ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

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

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