ExcludeFromCodeCoverageAttribute.cs 757 B

123456789101112131415161718192021
  1. using System;
  2. namespace System.Diagnostics.CodeAnalysis
  3. {
  4. /// <summary>
  5. /// Specifies that the attributed code should be excluded from code coverage
  6. /// collection. Placing this attribute on a class/struct excludes all
  7. /// enclosed methods and properties from code coverage collection.
  8. /// </summary>
  9. [AttributeUsage(
  10. AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Constructor | AttributeTargets.Event | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Struct,
  11. Inherited = false,
  12. AllowMultiple = false
  13. )]
  14. public sealed class ExcludeFromCodeCoverageAttribute : Attribute
  15. {
  16. public ExcludeFromCodeCoverageAttribute()
  17. {
  18. }
  19. }
  20. }