Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System.Data/Test/System.Data/DataSetReadXmlSchemaTest.cs')
-rw-r--r--mcs/class/System.Data/Test/System.Data/DataSetReadXmlSchemaTest.cs29
1 files changed, 0 insertions, 29 deletions
diff --git a/mcs/class/System.Data/Test/System.Data/DataSetReadXmlSchemaTest.cs b/mcs/class/System.Data/Test/System.Data/DataSetReadXmlSchemaTest.cs
index ed353190910..a70803fd5ca 100644
--- a/mcs/class/System.Data/Test/System.Data/DataSetReadXmlSchemaTest.cs
+++ b/mcs/class/System.Data/Test/System.Data/DataSetReadXmlSchemaTest.cs
@@ -758,34 +758,5 @@ namespace MonoTests.System.Data
tbl.Columns.Add("data", typeof(string));
Assert (ds.GetXmlSchema ().IndexOf ("AutoIncrementStep") > 0);
}
-
- [Test]
- public void ReadConstraints ()
- {
- DataSet ds = new DataSet ();
- ds.ReadXmlSchema ("Test/System.Data/schemas/test015.xsd");
-
- NUnit.Framework.Assert.AreEqual (0, ds.Relations.Count, "#1");
- NUnit.Framework.Assert.AreEqual(1, ds.Tables [0].Constraints.Count, "#2" );
- NUnit.Framework.Assert.AreEqual(1, ds.Tables [1].Constraints.Count, "#3" );
- NUnit.Framework.Assert.AreEqual("fk1", ds.Tables [1].Constraints [0].ConstraintName, "#4");
- }
-
- [Test]
- public void ReadAnnotatedRelations_MultipleColumns ()
- {
- DataSet ds = new DataSet ();
- ds.ReadXmlSchema ("Test/System.Data/schemas/test016.xsd");
-
- NUnit.Framework.Assert.AreEqual (1, ds.Relations.Count, "#1");
- NUnit.Framework.Assert.AreEqual ("rel", ds.Relations [0].RelationName, "#2");
- NUnit.Framework.Assert.AreEqual (2, ds.Relations [0].ParentColumns.Length, "#3");
- NUnit.Framework.Assert.AreEqual (2, ds.Relations [0].ChildColumns.Length, "#4");
- NUnit.Framework.Assert.AreEqual(0, ds.Tables [0].Constraints.Count, "#5" );
- NUnit.Framework.Assert.AreEqual(0, ds.Tables [1].Constraints.Count, "#6" );
-
- AssertDataRelation ("TestRel", ds.Relations [0], "rel", false, new String[] {"col 1","col2"},
- new String[] {"col1","col 2"}, false, false);
- }
}
}