-Incremented version to 6.0.1
-Changed .NET 4 Portable NuGet target to portable-net40+sl5+wp80+win8+monotouch+monoandroid -Fixed Uri serialization roundtrip by using Uri.OriginalString -Added Decimal and DateTimeOffset constructors to JValue -Changed DefaultMemberSearchFlags on DefaultContractResolver to obsolete
This commit is contained in:
@@ -9937,6 +9937,20 @@ Parameter name: value",
|
||||
}", s);
|
||||
}
|
||||
#endif
|
||||
|
||||
[Test]
|
||||
public void RoundtripUriOriginalString()
|
||||
{
|
||||
string originalUri = "https://test.com?m=a%2bb";
|
||||
|
||||
Uri uriWithPlus = new Uri(originalUri);
|
||||
|
||||
string jsonWithPlus = JsonConvert.SerializeObject(uriWithPlus);
|
||||
|
||||
Uri uriWithPlus2 = JsonConvert.DeserializeObject<Uri>(jsonWithPlus);
|
||||
|
||||
Assert.AreEqual(originalUri, uriWithPlus2.OriginalString);
|
||||
}
|
||||
}
|
||||
|
||||
public class PersonReference
|
||||
|
||||
Reference in New Issue
Block a user