Associates an annotation message with a code element. When the code element
is processed as part of building some other test, the annotation message will
be emitted. This may be used to signal error, warning, and informational
messages associated with the code element in question.
Namespace:
Gallio.Framework.PatternAssembly: Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.610.0)
Syntax
| C# |
|---|
public abstract class AnnotationPatternAttribute : PatternAttribute |
| Visual Basic (Declaration) |
|---|
Public MustInherit Class AnnotationPatternAttribute _ Inherits PatternAttribute |
Remarks
Many annotations are automatically generated by the framework. For example, improperly used attributes generally cause error annotations to be emitted. This attribute provides an easy way for test authors to leverage the annotation mechanism for other discretionary purposes where it is desirable to draw attention to a particular code element.
Note that the annotation will only be emitted if it is encountered during the process of building a test. If for some reason the annotated code element is not processed, then the attribute will have no effect.
Inheritance Hierarchy
System..::.Object
System..::.Attribute
Gallio.Framework.Pattern..::.PatternAttribute
Gallio.Framework.Pattern..::.AnnotationPatternAttribute
MbUnit.Framework..::.AnnotationAttribute
System..::.Attribute
Gallio.Framework.Pattern..::.PatternAttribute
Gallio.Framework.Pattern..::.AnnotationPatternAttribute
MbUnit.Framework..::.AnnotationAttribute
