diff --git a/Src/Newtonsoft.Json.Tests/Linq/LinqToJsonTest.cs b/Src/Newtonsoft.Json.Tests/Linq/LinqToJsonTest.cs index c604c0c7..5ac8c2eb 100644 --- a/Src/Newtonsoft.Json.Tests/Linq/LinqToJsonTest.cs +++ b/Src/Newtonsoft.Json.Tests/Linq/LinqToJsonTest.cs @@ -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() {