ExcludeFromCodeCoverage Attribute 11/28/2011 Gérald Barré .NETCode coverage results can appear artificially low when your project includes generated code (which is rarely tested) or code written by other developers. In these cases, the numbers do not accurately reflect the quality of your own code. To address this, you can exclude specific types and members from code coverage analysis using the ExcludeFromCodeCoverage attribute (System.Diagnostics.CodeAnalysis). This attribute can be applied to any type or member.For more information about this attribute: https://learn.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2010/dd984116(v=vs.100)Do you have a question or a suggestion about this post? Contact me!Follow me:Enjoy this blog?💖 Sponsor on GitHub