New test.
[mono.git] / mcs / class / System / System.Configuration / SettingElementCollection.cs
index 91f91e45ef67d1d328d34a007ae757d43407e823..725158ac7a90d875fdabdc7351a081a4e2bf4e5e 100644 (file)
@@ -59,36 +59,28 @@ namespace System.Configuration
                }
 
                [MonoTODO]
-               public void Remove (string elementKey)
+               public void Remove (SettingElement element)
                {
                        throw new NotImplementedException ();
                }
 
 #if (CONFIGURATION_DEP)
-               [MonoTODO]
                protected override ConfigurationElement CreateNewElement ()
                {
-                       throw new NotImplementedException ();
+                       return new SettingElement ();
                }
 
-               [MonoTODO]
                protected override object GetElementKey (ConfigurationElement element)
                {
-                       throw new NotImplementedException ();
+                       return ((SettingElement) element).Name;
                }
 
-               [MonoTODO]
-               protected override ConfigurationElementCollectionType CollectionType {
-                       get {
-                               throw new NotImplementedException ();
-                       }
+               public override ConfigurationElementCollectionType CollectionType {
+                       get { return ConfigurationElementCollectionType.BasicMap; }
                }
 
-               [MonoTODO]
                protected override string ElementName {
-                       get {
-                               throw new NotImplementedException ();
-                       }
+                       get { return "setting"; }
                }
 #endif
        }