Author: toshok
Date: 2006-01-09 16:19:32 -0500 (Mon, 09 Jan 2006)
New Revision: 55261

Added:
   
trunk/mcs/class/System.Configuration/Test/System.Configuration/ConfigurationElementTest.cs
Modified:
   trunk/mcs/class/System.Configuration/System.Configuration_test.dll.sources
Log:
add new test

Modified: 
trunk/mcs/class/System.Configuration/System.Configuration_test.dll.sources
===================================================================
--- trunk/mcs/class/System.Configuration/System.Configuration_test.dll.sources  
2006-01-09 21:10:46 UTC (rev 55260)
+++ trunk/mcs/class/System.Configuration/System.Configuration_test.dll.sources  
2006-01-09 21:19:32 UTC (rev 55261)
@@ -1,6 +1,7 @@
 System.Configuration/CallbackValidatorTest.cs
 System.Configuration/CommaDelimitedStringCollectionConverterTest.cs
 System.Configuration/CommaDelimitedStringCollectionTest.cs
+System.Configuration/ConfigurationElementTest.cs
 System.Configuration/ConfigurationLockCollectionTest.cs
 System.Configuration/ConfigurationPermissionTest.cs
 System.Configuration/ConfigurationManagerTest.cs

Added: 
trunk/mcs/class/System.Configuration/Test/System.Configuration/ConfigurationElementTest.cs
===================================================================
--- 
trunk/mcs/class/System.Configuration/Test/System.Configuration/ConfigurationElementTest.cs
  2006-01-09 21:10:46 UTC (rev 55260)
+++ 
trunk/mcs/class/System.Configuration/Test/System.Configuration/ConfigurationElementTest.cs
  2006-01-09 21:19:32 UTC (rev 55261)
@@ -0,0 +1,52 @@
+//
+// System.Configuration.ConfigurationElementTest.cs - Unit tests
+// for System.Configuration.ConfigurationElement.
+//
+// Author:
+//     Chris Toshok  <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2006 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.
+//
+
+#if NET_2_0
+
+using System;
+using System.Configuration;
+using NUnit.Framework;
+
+namespace MonoTests.System.Configuration {
+       [TestFixture]
+       public class ConfigurationElementTest
+       {
+               [Test]
+               public void ElementInformation_validator () {
+                       /* pick a Configuration class that doesn't
+                        * specify an ElementInformation override */
+                       DefaultSection sect = new DefaultSection();
+                       ElementInformation info = sect.ElementInformation;
+
+                       Assert.AreEqual (typeof (DefaultValidator), 
info.Validator.GetType(), "A1");
+               }
+       }
+}
+
+#endif

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to