C# Class Elmah.Assertions.RegexMatchAssertion

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
RegexMatchAssertion ( IContextExpression source, Regex regex ) : System

Protected Methods

Method Description
TestResult ( object result ) : bool
TestResultMatch ( string result ) : bool

Method Details

RegexMatchAssertion() public method

public RegexMatchAssertion ( IContextExpression source, Regex regex ) : System
source IContextExpression
regex System.Text.RegularExpressions.Regex
return System

TestResult() protected method

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

TestResultMatch() protected method

protected TestResultMatch ( string result ) : bool
result string
return bool