Gets the test parts represented by a code element.
Namespace:
Gallio.Framework.PatternAssembly: Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.610.0)
Syntax
| C# |
|---|
public override IList<TestPart> GetTestParts( IPatternEvaluator evaluator, ICodeElementInfo codeElement ) |
| Visual Basic (Declaration) |
|---|
Public Overrides Function GetTestParts ( _ evaluator As IPatternEvaluator, _ codeElement As ICodeElementInfo _ ) As IList(Of TestPart) |
Parameters
- evaluator
- Type: Gallio.Framework.Pattern..::.IPatternEvaluator
The evaluator.
- codeElement
- Type: Gallio.Common.Reflection..::.ICodeElementInfo
The code element.
Return Value
The test parts, or an empty array if none.Implements
IPattern..::.GetTestParts(IPatternEvaluator, ICodeElementInfo)
Remarks
This method is only called for primary patterns.
Exceptions
| Exception | Condition |
|---|---|
| Gallio.Framework.Pattern..::.PatternUsageErrorException | May be thrown to halt processing of the pattern and report an error message to the user as an annotation that describes how the pattern was misapplied. |
