http://bugzilla.novell.com/show_bug.cgi?id=573690
http://bugzilla.novell.com/show_bug.cgi?id=573690#c0 Summary: DataContractJsonSerializer bug with null strings Classification: Mono Product: Mono: Class Libraries Version: SVN Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: WCF AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- Test case (already in SVN). Mono return String.Empty instead of null. [Test] [Category ("NotWorking")] public void ReadWriteNullObject () { DataContractJsonSerializer dcjs = new DataContractJsonSerializer (typeof (string)); using (MemoryStream ms = new MemoryStream ()) { dcjs.WriteObject (ms, null); ms.Position = 0; using (StreamReader sr = new StreamReader (ms)) { string data = sr.ReadToEnd (); Assert.AreEqual ("null", data, "WriteObject(stream,null)"); ms.Position = 0; Assert.IsNull (dcjs.ReadObject (ms), "ReadObject(stream)"); } }; } -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
