Validates the data source properties of the content attribute.

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

Syntax

C#
protected virtual void ValidateSource(
	IPatternScope scope,
	ICodeElementInfo codeElement
)
Visual Basic (Declaration)
Protected Overridable Sub ValidateSource ( _
	scope As IPatternScope, _
	codeElement As ICodeElementInfo _
)

Parameters

scope
Type: Gallio.Framework.Pattern..::.IPatternScope
The pattern scope.
codeElement
Type: Gallio.Common.Reflection..::.ICodeElementInfo
The code element to which the attribute was applied.

Remarks

Throws a PatternUsageErrorException if none of the source properties, such as Contents, FilePath or ResourcePath have been set.

Exceptions

ExceptionCondition
Gallio.Framework.Pattern..::.PatternUsageErrorExceptionThrown if none of the source properties, such as Contents, FilePath or ResourcePath have been set.

See Also