Infers whether the type is a test type based on its structure.
Namespace:
Gallio.Framework.PatternAssembly: Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.610.0)
Syntax
| C# |
|---|
protected virtual bool InferTestType( IPatternEvaluator evaluator, ITypeInfo type ) |
| Visual Basic (Declaration) |
|---|
Protected Overridable Function InferTestType ( _ evaluator As IPatternEvaluator, _ type As ITypeInfo _ ) As Boolean |
Parameters
- evaluator
- Type: Gallio.Framework.Pattern..::.IPatternEvaluator
The pattern evaluator.
- type
- Type: Gallio.Common.Reflection..::.ITypeInfo
The type.
Return Value
True if the type is likely a test type.
Remarks
Returns true if the type any associated patterns, if it has non-nested type members (subject to GetMemberBindingFlags(ITypeInfo)) with patterns, if it has generic parameters with patterns, or if any of its nested types satisfy the preceding rules.
