Table of Contents

Class UncoverableByTestAttribute

Namespace
NDepend.Attributes
Assembly
NDepend.API.dll

This attribute can be used to declare that a code element is not coverable by tests.

[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Constructor|AttributeTargets.Method)]
public sealed class UncoverableByTestAttribute : Attribute
Inheritance
UncoverableByTestAttribute
Inherited Members
Extension Methods

Remarks

This attribute is useful to keep a class deemed as 100% covered by tests, even if one of its methods is not coverable by tests (for example because it calls a blocking method such as MessageBox.Show()).
This attribute is typically defined through UncoverableAttribute.

Constructor (1)

UncoverableByTestAttribute()

Create a new instance of the UncoverableByTestAttribute class.

public UncoverableByTestAttribute()

See Also