updating to the latest module.
[mono.git] / mcs / class / System.Data / Test / System.Data / DataRelationTest.cs
index 450b96dde4ab9476dced9e9b10a7b48f9961d73a..bd4aed49aa6b17c25a6be87808ba2915de8998d9 100644 (file)
@@ -8,6 +8,29 @@
 // (C) 2003 Ville Palo\r
 // (C) 2003 Martin Willemoes Hansen\r
 // \r
+
+//
+// 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.
+//
 \r
 using NUnit.Framework;\r
 using System;\r
@@ -121,7 +144,7 @@ namespace MonoTests.System.Data
                }\r
 \r
                [Test]\r
-               [ExpectedException (typeof(InvalidConstraintException))]\r
+               [ExpectedException (typeof (InvalidConstraintException))]\r
                public void InvalidConstraintException2 ()\r
                {\r
                        // Parent Columns and Child Columns don't have type-matching columns.\r
@@ -129,6 +152,7 @@ namespace MonoTests.System.Data
                        \r
                        DataRelation Relation = new DataRelation ("Rel", Mom.Columns [1], Child.Columns [1], true);\r
                        Set.Relations.Add (Relation);\r
+                       AssertEquals("test#01", 1, Set.Relations.Count);
                        \r
                        Child.Columns [1].DataType = Type.GetType ("System.Double");\r
                }\r