I have some tool-generated code in my solution that I would like to exclude from coverage.
Ideally, I would like to be able to do it through an attribute. e.g.:
[AttributeUsage(AttributeTargets.All, AllowMultiple = false, Inherited = false)]
public class ExcludeFromCoverageAttribute : Attribute
public ExcludeFromCoverageAttribute(string reason)
[ExcludeFromCoverage("This code is tool-generated")]
public class MyClass