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
Afficher le fichier Open project: elmah/Elmah

Méthodes publiques

Méthode Description
ComparisonAssertion ( Predicate predicate, IContextExpression source, TypeCode type, string value ) : System
Test ( object context ) : bool

Méthodes protégées

Méthode Description
TestComparison ( IComparable left, IComparable right ) : bool
TestResult ( object result ) : bool

Method Details

ComparisonAssertion() public méthode

public ComparisonAssertion ( Predicate predicate, IContextExpression source, TypeCode type, string value ) : System
predicate Predicate
source IContextExpression
type TypeCode
value string
Résultat System

Test() public méthode

public Test ( object context ) : bool
context object
Résultat bool

TestComparison() protected méthode

protected TestComparison ( IComparable left, IComparable right ) : bool
left IComparable
right IComparable
Résultat bool

TestResult() protected méthode

protected TestResult ( object result ) : bool
result object
Résultat bool