C# Class System.Xml.Tests.CXmlSchemaValidatorTestCase

Show file Open project: dotnet/corefx

Public Properties

Property Type Description
ErrorInnerExceptionSet bool
WarningInnerExceptionSet bool
bErrorCallback bool
bWarningCallback bool
errorCount int
warningCount int

Public Methods

Method Description
CXmlSchemaValidatorTestCase ( ITestOutputHelper output ) : System
Initialize ( ) : void
StringGetter ( string resStr ) : XmlValueGetter
ValidateSchemaSet ( XmlSchemaSet ss, int schCount, bool isCompiled, int countGT, int countGE, int countGA, string str ) : void
ValidateWithSchemaInfo ( XmlSchemaSet ss ) : void
ValidateWithXmlReader ( XmlSchemaSet schemas, string xml, string xsd ) : void
ValidationCallback ( object sender, ValidationEventArgs args ) : void

Protected Methods

Method Description
CreateSchemaSet ( string targetNamespace, string XsdContent ) : XmlSchemaSet
CreateSchemaSetFromXml ( string XmlContent ) : XmlSchemaSet
CreateValidator ( XmlSchemaSet schemas ) : XmlSchemaValidator
CreateValidator ( XmlSchemaSet schemas, IXmlNamespaceResolver nsRes, XmlSchemaValidationFlags flags ) : XmlSchemaValidator
CreateValidator ( XmlSchemaSet schemas, XmlSchemaValidationFlags flags ) : XmlSchemaValidator
CreateValidator ( string xsdFilename ) : XmlSchemaValidator
CreateValidator ( string xsdFilename, string targetNamespace ) : XmlSchemaValidator
CreateValidator ( string xsdFilename, string targetNamespace, XmlSchemaValidationFlags flags ) : XmlSchemaValidator

Private Methods

Method Description
stringGetterHandle ( ) : string

Method Details

CXmlSchemaValidatorTestCase() public method

public CXmlSchemaValidatorTestCase ( ITestOutputHelper output ) : System
output ITestOutputHelper
return System

CreateSchemaSet() protected method

protected CreateSchemaSet ( string targetNamespace, string XsdContent ) : XmlSchemaSet
targetNamespace string
XsdContent string
return System.Xml.Schema.XmlSchemaSet

CreateSchemaSetFromXml() protected method

protected CreateSchemaSetFromXml ( string XmlContent ) : XmlSchemaSet
XmlContent string
return System.Xml.Schema.XmlSchemaSet

CreateValidator() protected method

protected CreateValidator ( XmlSchemaSet schemas ) : XmlSchemaValidator
schemas System.Xml.Schema.XmlSchemaSet
return System.Xml.Schema.XmlSchemaValidator

CreateValidator() protected method

protected CreateValidator ( XmlSchemaSet schemas, IXmlNamespaceResolver nsRes, XmlSchemaValidationFlags flags ) : XmlSchemaValidator
schemas System.Xml.Schema.XmlSchemaSet
nsRes IXmlNamespaceResolver
flags XmlSchemaValidationFlags
return System.Xml.Schema.XmlSchemaValidator

CreateValidator() protected method

protected CreateValidator ( XmlSchemaSet schemas, XmlSchemaValidationFlags flags ) : XmlSchemaValidator
schemas System.Xml.Schema.XmlSchemaSet
flags XmlSchemaValidationFlags
return System.Xml.Schema.XmlSchemaValidator

CreateValidator() protected method

protected CreateValidator ( string xsdFilename ) : XmlSchemaValidator
xsdFilename string
return System.Xml.Schema.XmlSchemaValidator

CreateValidator() protected method

protected CreateValidator ( string xsdFilename, string targetNamespace ) : XmlSchemaValidator
xsdFilename string
targetNamespace string
return System.Xml.Schema.XmlSchemaValidator

CreateValidator() protected method

protected CreateValidator ( string xsdFilename, string targetNamespace, XmlSchemaValidationFlags flags ) : XmlSchemaValidator
xsdFilename string
targetNamespace string
flags XmlSchemaValidationFlags
return System.Xml.Schema.XmlSchemaValidator

Initialize() public method

public Initialize ( ) : void
return void

StringGetter() public method

public StringGetter ( string resStr ) : XmlValueGetter
resStr string
return XmlValueGetter

ValidateSchemaSet() public method

public ValidateSchemaSet ( XmlSchemaSet ss, int schCount, bool isCompiled, int countGT, int countGE, int countGA, string str ) : void
ss System.Xml.Schema.XmlSchemaSet
schCount int
isCompiled bool
countGT int
countGE int
countGA int
str string
return void

ValidateWithSchemaInfo() public method

public ValidateWithSchemaInfo ( XmlSchemaSet ss ) : void
ss System.Xml.Schema.XmlSchemaSet
return void

ValidateWithXmlReader() public method

public ValidateWithXmlReader ( XmlSchemaSet schemas, string xml, string xsd ) : void
schemas System.Xml.Schema.XmlSchemaSet
xml string
xsd string
return void

ValidationCallback() public method

public ValidationCallback ( object sender, ValidationEventArgs args ) : void
sender object
args System.Xml.Schema.ValidationEventArgs
return void

Property Details

ErrorInnerExceptionSet public property

public bool ErrorInnerExceptionSet
return bool

WarningInnerExceptionSet public property

public bool WarningInnerExceptionSet
return bool

bErrorCallback public property

public bool bErrorCallback
return bool

bWarningCallback public property

public bool bWarningCallback
return bool

errorCount public property

public int errorCount
return int

warningCount public property

public int warningCount
return int