[Mono-bugs] [Bug 573690] New: DataContractJsonSerializer bug with null strings
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Jan 25 16:06:50 EST 2010
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: atsushi at ximian.com
ReportedBy: spouliot at novell.com
QAContact: mono-bugs at lists.ximian.com
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.
More information about the mono-bugs
mailing list