PageRenderTime 49ms CodeModel.GetById 19ms 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
Possible License(s): GPL-2.0
  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. // ****************************************************************
  6. using System;
  7. namespace NUnit.Core.Extensibility
  8. {
  9. /// <summary>
  10. /// NUnitAddinAttribute is used to mark all add-ins. The marked class
  11. /// must implement the IAddin interface.
  12. /// </summary>
  13. [AttributeUsage(AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
  14. public sealed class NUnitAddinAttribute : Attribute
  15. {
  16. /// <summary>
  17. /// The name of this addin
  18. /// </summary>
  19. public string Name;
  20. /// <summary>
  21. /// A description for the addin
  22. /// </summary>
  23. public string Description;
  24. /// <summary>
  25. /// The type of extension provided
  26. /// </summary>
  27. public ExtensionType Type;
  28. /// <summary>
  29. /// Default Constructor
  30. /// </summary>
  31. public NUnitAddinAttribute()
  32. {
  33. this.Type = ExtensionType.Core;
  34. }
  35. }
  36. }