System.Data.Tests.DataSetInferXmlSchemaTest.ConflictColumnTable C# (CSharp) Method

ConflictColumnTable() private method

private ConflictColumnTable ( ) : void
return void
        public void ConflictColumnTable()
        {
            DataSet ds = GetDataSet(_xml19, null);
            AssertDataSet("ds", ds, "set", 2, 1);

            DataTable dt = ds.Tables[0];
            AssertDataTable("dt", dt, "table", 1, 0, 0, 1, 1, 1);
            AssertDataColumn("table_Id", dt.Columns[0], "table_Id", false, true, 0, 1, "table_Id", MappingType.Hidden, typeof(int), DBNull.Value, string.Empty, -1, string.Empty, 0, string.Empty, false, true);

            dt = ds.Tables[1];
            AssertDataTable("dt", dt, "col", 2, 0, 1, 0, 1, 0);
            AssertDataColumn("table_refId", dt.Columns["table_Id"], "table_Id", true, false, 0, 1, "table_Id", MappingType.Hidden, typeof(int), DBNull.Value, string.Empty, -1, string.Empty, /*0*/-1, string.Empty, false, false);
            AssertDataColumn("another_col", dt.Columns["another_col"], "another_col", true, false, 0, 1, "another_col", MappingType.Element, typeof(string), DBNull.Value, string.Empty, -1, string.Empty, /*1*/-1, string.Empty, false, false);

            DataRelation dr = ds.Relations[0];
            AssertDataRelation("rel", dr, "table_col", true, new string[] { "table_Id" }, new string[] { "table_Id" }, true, true);
            AssertUniqueConstraint("uniq", dr.ParentKeyConstraint, "Constraint1", true, new string[] { "table_Id" });
            AssertForeignKeyConstraint("fkey", dr.ChildKeyConstraint, "table_col", AcceptRejectRule.None, Rule.Cascade, Rule.Cascade, new string[] { "table_Id" }, new string[] { "table_Id" });
        }