C# Class Elmah.Assertions.TypeAssertion

An assertion implementation whose test is based on whether the result of an input expression evaluated against a context matches a regular expression pattern or not.
Inheritance: DataBoundAssertion
显示文件 Open project: elmah/Elmah

Public Methods

Method Description
Test ( object context ) : bool
TypeAssertion ( IContextExpression source, Type expectedType, bool byCompatibility ) : System

Protected Methods

Method Description
TestResult ( object result ) : bool

Private Methods

Method Description
EvaluateToException ( object context ) : object
MaskNullExpression ( IContextExpression expression ) : IContextExpression

Method Details

Test() public method

public Test ( object context ) : bool
context object
return bool

TestResult() protected method

protected TestResult ( object result ) : bool
result object
return bool

TypeAssertion() public method

public TypeAssertion ( IContextExpression source, Type expectedType, bool byCompatibility ) : System
source IContextExpression
expectedType System.Type
byCompatibility bool
return System