C# Class System.Data.Tests.DataSetAssertion

Exibir arquivo Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
AssertDataColumn ( string label, DataColumn col, string colName, bool allowDBNull, bool autoIncr, int autoIncrSeed, int autoIncrStep, string caption, MappingType colMap, Type type, object defaultValue, string expression, int maxLength, string ns, int ordinal, string prefix, bool readOnly, bool unique ) : void
AssertDataRelation ( string label, DataRelation rel, string name, bool nested, string parentColNames, string childColNames, bool existsUK, bool existsFK ) : void
AssertDataSet ( string label, DataSet ds, string name, int tableCount, int relCount ) : void
AssertDataTable ( string label, DataTable dt, string name, int columnCount, int rowCount, int parentRelationCount, int childRelationCount, int constraintCount, int primaryKeyLength ) : void
AssertForeignKeyConstraint ( string label, ForeignKeyConstraint fk, string name, AcceptRejectRule acceptRejectRule, Rule delRule, Rule updateRule, string colNames, string relColNames ) : void
AssertReadXml ( DataSet ds, string label, string xml, XmlReadMode readMode, XmlReadMode resultMode, string datasetName, int tableCount ) : void
AssertReadXml ( DataSet ds, string label, string xml, XmlReadMode readMode, XmlReadMode resultMode, string datasetName, int tableCount, ReadState state ) : void
AssertReadXml ( DataSet ds, string label, string xml, XmlReadMode readMode, XmlReadMode resultMode, string datasetName, int tableCount, ReadState state, string readerLocalName, string readerNS ) : void
AssertUniqueConstraint ( string label, UniqueConstraint uc, string name, bool isPrimaryKey, string colNames ) : void
GetNormalizedSchema ( string source ) : string

Private Methods

Method Description
SortAttributes ( XmlElement el ) : void
SortAttributesAttributes ( XmlElement el ) : void

Method Details

AssertDataColumn() public method

public AssertDataColumn ( string label, DataColumn col, string colName, bool allowDBNull, bool autoIncr, int autoIncrSeed, int autoIncrStep, string caption, MappingType colMap, Type type, object defaultValue, string expression, int maxLength, string ns, int ordinal, string prefix, bool readOnly, bool unique ) : void
label string
col DataColumn
colName string
allowDBNull bool
autoIncr bool
autoIncrSeed int
autoIncrStep int
caption string
colMap MappingType
type Type
defaultValue object
expression string
maxLength int
ns string
ordinal int
prefix string
readOnly bool
unique bool
return void

AssertDataRelation() public method

public AssertDataRelation ( string label, DataRelation rel, string name, bool nested, string parentColNames, string childColNames, bool existsUK, bool existsFK ) : void
label string
rel DataRelation
name string
nested bool
parentColNames string
childColNames string
existsUK bool
existsFK bool
return void

AssertDataSet() public method

public AssertDataSet ( string label, DataSet ds, string name, int tableCount, int relCount ) : void
label string
ds DataSet
name string
tableCount int
relCount int
return void

AssertDataTable() public method

public AssertDataTable ( string label, DataTable dt, string name, int columnCount, int rowCount, int parentRelationCount, int childRelationCount, int constraintCount, int primaryKeyLength ) : void
label string
dt DataTable
name string
columnCount int
rowCount int
parentRelationCount int
childRelationCount int
constraintCount int
primaryKeyLength int
return void

AssertForeignKeyConstraint() public method

public AssertForeignKeyConstraint ( string label, ForeignKeyConstraint fk, string name, AcceptRejectRule acceptRejectRule, Rule delRule, Rule updateRule, string colNames, string relColNames ) : void
label string
fk ForeignKeyConstraint
name string
acceptRejectRule AcceptRejectRule
delRule Rule
updateRule Rule
colNames string
relColNames string
return void

AssertReadXml() public method

public AssertReadXml ( DataSet ds, string label, string xml, XmlReadMode readMode, XmlReadMode resultMode, string datasetName, int tableCount ) : void
ds DataSet
label string
xml string
readMode XmlReadMode
resultMode XmlReadMode
datasetName string
tableCount int
return void

AssertReadXml() public method

public AssertReadXml ( DataSet ds, string label, string xml, XmlReadMode readMode, XmlReadMode resultMode, string datasetName, int tableCount, ReadState state ) : void
ds DataSet
label string
xml string
readMode XmlReadMode
resultMode XmlReadMode
datasetName string
tableCount int
state ReadState
return void

AssertReadXml() public method

public AssertReadXml ( DataSet ds, string label, string xml, XmlReadMode readMode, XmlReadMode resultMode, string datasetName, int tableCount, ReadState state, string readerLocalName, string readerNS ) : void
ds DataSet
label string
xml string
readMode XmlReadMode
resultMode XmlReadMode
datasetName string
tableCount int
state ReadState
readerLocalName string
readerNS string
return void

AssertUniqueConstraint() public method

public AssertUniqueConstraint ( string label, UniqueConstraint uc, string name, bool isPrimaryKey, string colNames ) : void
label string
uc UniqueConstraint
name string
isPrimaryKey bool
colNames string
return void

GetNormalizedSchema() public method

public GetNormalizedSchema ( string source ) : string
source string
return string