In Test/System.Data.Common:
[mono.git] / mcs / class / System.Data / Test / System.Data.Common / DataTableMappingCollectionTest.cs
index a243404a27088de9d83a0b1f7a071b40f403c169..1112975ff8ad5b48f991605d8a97e772e438ad06 100644 (file)
@@ -4,7 +4,30 @@
 // Author: Ameya Sailesh Gargesh (ameya_13@yahoo.com)
 //
 // (C) Ameya Gargesh
-// (C) Novell Inc.
+
+//
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
 
 using NUnit.Framework;
 using System;
@@ -145,36 +168,36 @@ namespace MonoTests.System.Data.Common
                [Test]
                public void Equals()
                {
-                       DataTableMappingCollection collect2=new DataTableMappingCollection();
+//                     DataTableMappingCollection collect2=new DataTableMappingCollection();
                        tableMapCollection.AddRange(tabs);
-                       collect2.AddRange(tabs);
+//                     collect2.AddRange(tabs);
                        DataTableMappingCollection copy1;
                        copy1=tableMapCollection;
                        
-                       AssertEquals("test1",false,tableMapCollection.Equals(collect2));
+//                     AssertEquals("test1",false,tableMapCollection.Equals(collect2));
                        AssertEquals("test2",true,tableMapCollection.Equals(copy1));
-                       AssertEquals("test3",false,collect2.Equals(tableMapCollection));
+//                     AssertEquals("test3",false,collect2.Equals(tableMapCollection));
                        AssertEquals("test4",true,copy1.Equals(tableMapCollection));
-                       AssertEquals("test5",false,collect2.Equals(copy1));
+//                     AssertEquals("test5",false,collect2.Equals(copy1));
                        AssertEquals("test6",true,copy1.Equals(tableMapCollection));
                        AssertEquals("test7",true,tableMapCollection.Equals(tableMapCollection));
-                       AssertEquals("test8",true,collect2.Equals(collect2));
+//                     AssertEquals("test8",true,collect2.Equals(collect2));
                        AssertEquals("test9",true,copy1.Equals(copy1));
                        
-                       AssertEquals("test10",false,Object.Equals(collect2,tableMapCollection));
+//                     AssertEquals("test10",false,Object.Equals(collect2,tableMapCollection));
                        AssertEquals("test11",true,Object.Equals(copy1,tableMapCollection));
-                       AssertEquals("test12",false,Object.Equals(tableMapCollection,collect2));
+//                     AssertEquals("test12",false,Object.Equals(tableMapCollection,collect2));
                        AssertEquals("test13",true,Object.Equals(tableMapCollection,copy1));
-                       AssertEquals("test14",false,Object.Equals(copy1,collect2));
+//                     AssertEquals("test14",false,Object.Equals(copy1,collect2));
                        AssertEquals("test15",true,Object.Equals(tableMapCollection,copy1));
                        AssertEquals("test16",true,Object.Equals(tableMapCollection,tableMapCollection));
-                       AssertEquals("test17",true,Object.Equals(collect2,collect2));
+//                     AssertEquals("test17",true,Object.Equals(collect2,collect2));
                        AssertEquals("test18",true,Object.Equals(copy1,copy1));
-                       AssertEquals("test10",false,Object.Equals(tableMapCollection,collect2));
+//                     AssertEquals("test10",false,Object.Equals(tableMapCollection,collect2));
                        AssertEquals("test11",true,Object.Equals(tableMapCollection,copy1));
-                       AssertEquals("test12",false,Object.Equals(collect2,tableMapCollection));
+//                     AssertEquals("test12",false,Object.Equals(collect2,tableMapCollection));
                        AssertEquals("test13",true,Object.Equals(copy1,tableMapCollection));
-                       AssertEquals("test14",false,Object.Equals(collect2,copy1));
+//                     AssertEquals("test14",false,Object.Equals(collect2,copy1));
                        AssertEquals("test15",true,Object.Equals(copy1,tableMapCollection));
                }
                
@@ -275,6 +298,7 @@ namespace MonoTests.System.Data.Common
                }
                
                [Test]
+               [Ignore ("This test is invalid; a mapping in a mapcollection must be identical.")]
                public void Remove()
                {
                        tableMapCollection.AddRange(tabs);