2009-11-09 Marek Habersack <mhabersack@novell.com>
+ * HttpCookie.cs: made HttpCookie.CookieNVC serializable. Patch
+ from Sean Foy <sean.foy+novell@gmail.com>, thanks! Fixes bug
+ #553063
+
* HttpCookieCollection.cs: Add allows for duplicate cookie
names. Fixes bug #553150
2009-11-09 Marek Habersack <mhabersack@novell.com>
+ * HttpCookieTest.cs: added test for bug #553063
+
* HttpCookieCollectionTest.cs: added test for bug #553150
2009-09-07 Marek Habersack <mhabersack@novell.com>
//
using System;
+using System.IO;
+using System.Runtime.Serialization.Formatters.Binary;
using System.Web;
using NUnit.Framework;
Assert.IsFalse (cookie.HasKeys);
}
+ [Test (Description="Bug #553063")]
+ public void CookieValuesSerialization ()
+ {
+ BinaryFormatter bf = new BinaryFormatter();
+ HttpCookie c = new HttpCookie ("stuff", "value1");
+
+ using (var ms = new MemoryStream()) {
+ bf.Serialize(ms, c.Values);
+ ms.Seek(0, SeekOrigin.Begin);
+ }
+ }
+
[Test]
public void PropertySetters ()
{