New tests.
[mono.git] / mcs / class / System.Web / System.Web.Configuration_2.0 / CustomErrorsSection.cs
index d3aaa1296d45a1a0bb8f008af61e000159e011b2..df6a36964bc11b276622052eab1f1868e8b1a445 100644 (file)
@@ -45,9 +45,14 @@ namespace System.Web.Configuration {
 
                static CustomErrorsSection ()
                {
-                       defaultRedirectProp = new ConfigurationProperty ("defaultRedirect", typeof (string));
-                       errorsProp = new ConfigurationProperty ("", typeof (CustomErrorCollection), null, ConfigurationPropertyOptions.IsDefaultCollection);
-                       modeProp = new ConfigurationProperty ("mode", typeof (CustomErrorsMode), CustomErrorsMode.RemoteOnly);
+                       defaultRedirectProp = new ConfigurationProperty ("defaultRedirect", typeof (string), null);
+                       errorsProp = new ConfigurationProperty ("", typeof (CustomErrorCollection), null,
+                                                               null, PropertyHelper.DefaultValidator,
+                                                               ConfigurationPropertyOptions.IsDefaultCollection);
+                       modeProp = new ConfigurationProperty ("mode", typeof (CustomErrorsMode), CustomErrorsMode.RemoteOnly,
+                                                             new GenericEnumConverter (typeof (CustomErrorsMode)),
+                                                             PropertyHelper.DefaultValidator,
+                                                             ConfigurationPropertyOptions.None);
                        properties = new ConfigurationPropertyCollection ();
 
                        properties.Add (defaultRedirectProp);
@@ -56,14 +61,18 @@ namespace System.Web.Configuration {
 
                }
 
+               // Why override?
                protected override void DeserializeSection (XmlReader reader)
                {
+                       base.DeserializeSection (reader);
                }
 
+               // Why override?
                protected override void Reset (ConfigurationElement parentElement)
                {
+                       base.Reset (parentElement);
                }
-
+               
                [ConfigurationProperty ("defaultRedirect")]
                public string DefaultRedirect {
                        get { return (string) base [defaultRedirectProp];}