Verifies that the attribute is being used correctly.

Namespace:  MbUnit.Framework.ContractVerifiers
Assembly:  MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.610.0)

Syntax

C#
protected virtual void Validate(
	IPatternScope containingScope,
	IFieldInfo field
)
Visual Basic (Declaration)
Protected Overridable Sub Validate ( _
	containingScope As IPatternScope, _
	field As IFieldInfo _
)

Parameters

containingScope
Type: Gallio.Framework.Pattern..::.IPatternScope
The containing scope.
field
Type: Gallio.Common.Reflection..::.IFieldInfo
The field.

Exceptions

ExceptionCondition
Gallio.Framework.Pattern..::.PatternUsageErrorExceptionThrown if the attribute is being used incorrectly.

See Also