C# Class Elmah.Assertions.ComparisonAssertion

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
ComparisonAssertion ( Predicate predicate, IContextExpression source, TypeCode type, string value ) : System
Test ( object context ) : bool

Protected Methods

Method Description
TestComparison ( IComparable left, IComparable right ) : bool
TestResult ( object result ) : bool

Method Details

ComparisonAssertion() public method

public ComparisonAssertion ( Predicate predicate, IContextExpression source, TypeCode type, string value ) : System
predicate Predicate
source IContextExpression
type TypeCode
value string
return System

Test() public method

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

TestComparison() protected method

protected TestComparison ( IComparable left, IComparable right ) : bool
left IComparable
right IComparable
return bool

TestResult() protected method

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