This commit is contained in:
James Newton-King
2016-04-29 19:19:22 +12:00
parent 092dc7da58
commit ad7752fedf
@@ -73,6 +73,15 @@ namespace Newtonsoft.Json.Tests.Linq
Assert.AreEqual(token1.Type, token2.Type);
}
[Test]
public void FromObjectUri()
{
var token1 = new JValue(new Uri("http://www.newtonsoft.com"));
var token2 = JToken.FromObject(token1);
Assert.IsTrue(JToken.DeepEquals(token1, token2));
Assert.AreEqual(token1.Type, token2.Type);
}
[Test]
public void ToObject_Guid()
{