C# Class Elmah.Assertions.AssertionFactory

Holds factory methods for creating configured assertion objects.
显示文件 Open project: elmah/Elmah

Public Methods

Method Description
Create ( XmlElement config ) : IAssertion
Create ( XmlNodeList nodes ) : IAssertion[]
assert_and ( XmlElement config ) : IAssertion
assert_equal ( IContextExpression binding, TypeCode type, string value ) : IAssertion
assert_greater ( IContextExpression binding, TypeCode type, string value ) : IAssertion
assert_greater_or_equal ( IContextExpression binding, TypeCode type, string value ) : IAssertion
assert_is_not_null ( IContextExpression binding ) : IAssertion
assert_is_null ( IContextExpression binding ) : IAssertion
assert_is_type ( IContextExpression binding, Type type ) : IAssertion
assert_is_type_compatible ( IContextExpression binding, Type type ) : IAssertion
assert_jscript ( XmlElement config ) : IAssertion
assert_lesser ( IContextExpression binding, TypeCode type, string value ) : IAssertion
assert_lesser_or_equal ( IContextExpression binding, TypeCode type, string value ) : IAssertion
assert_not ( XmlElement config ) : IAssertion
assert_not_equal ( IContextExpression binding, TypeCode type, string value ) : IAssertion
assert_or ( XmlElement config ) : IAssertion
assert_regex ( IContextExpression binding, string pattern, bool caseSensitive, bool dontCompile ) : IAssertion

Private Methods

Method Description
CreateImpl ( XmlElement config ) : IAssertion
DecodeClrTypeNamespaceFromXmlNamespace ( string xmlns, string &typeNamespace, string &assemblyName ) : bool Ideally, we would be able to use SoapServices.DecodeXmlNamespaceForClrTypeNamespace but that requires a link demand permission that will fail in partially trusted environments such as ASP.NET medium trust.
DeserializeStringArray ( XmlElement config, string containerName, string elementName, string valueName ) : string[]
OrdinalStringStartsWith ( string s, string prefix ) : bool
ParseArgument ( ParameterInfo parameter, XmlElement config ) : object
ParseArguments ( MethodInfo method, XmlElement config ) : object[]

Method Details

Create() public static method

public static Create ( XmlElement config ) : IAssertion
config System.Xml.XmlElement
return IAssertion

Create() public static method

public static Create ( XmlNodeList nodes ) : IAssertion[]
nodes System.Xml.XmlNodeList
return IAssertion[]

assert_and() public static method

public static assert_and ( XmlElement config ) : IAssertion
config System.Xml.XmlElement
return IAssertion

assert_equal() public static method

public static assert_equal ( IContextExpression binding, TypeCode type, string value ) : IAssertion
binding IContextExpression
type TypeCode
value string
return IAssertion

assert_greater() public static method

public static assert_greater ( IContextExpression binding, TypeCode type, string value ) : IAssertion
binding IContextExpression
type TypeCode
value string
return IAssertion

assert_greater_or_equal() public static method

public static assert_greater_or_equal ( IContextExpression binding, TypeCode type, string value ) : IAssertion
binding IContextExpression
type TypeCode
value string
return IAssertion

assert_is_not_null() public static method

public static assert_is_not_null ( IContextExpression binding ) : IAssertion
binding IContextExpression
return IAssertion

assert_is_null() public static method

public static assert_is_null ( IContextExpression binding ) : IAssertion
binding IContextExpression
return IAssertion

assert_is_type() public static method

public static assert_is_type ( IContextExpression binding, Type type ) : IAssertion
binding IContextExpression
type System.Type
return IAssertion

assert_is_type_compatible() public static method

public static assert_is_type_compatible ( IContextExpression binding, Type type ) : IAssertion
binding IContextExpression
type System.Type
return IAssertion

assert_jscript() public static method

public static assert_jscript ( XmlElement config ) : IAssertion
config System.Xml.XmlElement
return IAssertion

assert_lesser() public static method

public static assert_lesser ( IContextExpression binding, TypeCode type, string value ) : IAssertion
binding IContextExpression
type TypeCode
value string
return IAssertion

assert_lesser_or_equal() public static method

public static assert_lesser_or_equal ( IContextExpression binding, TypeCode type, string value ) : IAssertion
binding IContextExpression
type TypeCode
value string
return IAssertion

assert_not() public static method

public static assert_not ( XmlElement config ) : IAssertion
config System.Xml.XmlElement
return IAssertion

assert_not_equal() public static method

public static assert_not_equal ( IContextExpression binding, TypeCode type, string value ) : IAssertion
binding IContextExpression
type TypeCode
value string
return IAssertion

assert_or() public static method

public static assert_or ( XmlElement config ) : IAssertion
config System.Xml.XmlElement
return IAssertion

assert_regex() public static method

public static assert_regex ( IContextExpression binding, string pattern, bool caseSensitive, bool dontCompile ) : IAssertion
binding IContextExpression
pattern string
caseSensitive bool
dontCompile bool
return IAssertion