Browse Source

2007-11-23 Marek Habersack <[email protected]>

	* CacheSectionTest.cs: modified to match the new MS.NET defaults.
2007-11-23  Marek Habersack  <[email protected]>

	* CustomErrorsSection.cs: added two missing overrides -
	DeserializeSection and Reset.

svn path=/trunk/mcs/; revision=90208
Marek Habersack 18 năm trước cách đây
mục cha
commit
7eb6037d96

+ 3 - 0
mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog

@@ -1,5 +1,8 @@
 2007-11-23  Marek Habersack  <[email protected]>
 
+	* CustomErrorsSection.cs: added two missing overrides -
+	DeserializeSection and Reset.
+
 	* ClientTargetSection.cs: added the missing Properties property.
 	Added static constructor to create the property collection.
 

+ 12 - 0
mcs/class/System.Web/System.Web.Configuration_2.0/CustomErrorsSection.cs

@@ -61,6 +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];}

+ 1 - 1
mcs/class/System.Web/Test/System.Web.Configuration/CacheSectionTest.cs

@@ -48,7 +48,7 @@ namespace MonoTests.System.Web.Configuration {
 			CacheSection c = new CacheSection ();
 			Assert.AreEqual (false, c.DisableExpiration, "A1");
 			Assert.AreEqual (false, c.DisableMemoryCollection, "A2");
-			Assert.AreEqual (89, c.PercentagePhysicalMemoryUsedLimit, "A3");
+			Assert.AreEqual (0, c.PercentagePhysicalMemoryUsedLimit, "A3");
 			Assert.AreEqual (0, c.PrivateBytesLimit, "A4");
 			Assert.AreEqual (TimeSpan.FromMinutes (2), c.PrivateBytesPollTime, "A4");
 		}

+ 4 - 0
mcs/class/System.Web/Test/System.Web.Configuration/ChangeLog

@@ -1,3 +1,7 @@
+2007-11-23  Marek Habersack  <[email protected]>
+
+	* CacheSectionTest.cs: modified to match the new MS.NET defaults.
+
 2007-03-24  Marek Habersack  <[email protected]>
 
 	* WebConfigurationManagerTest.cs: the tests don't work because of