diff --git a/Tests/Schema.NET.Test/ValuesJsonConverterTest.cs b/Tests/Schema.NET.Test/ValuesJsonConverterTest.cs index c3dce8fd..61103413 100644 --- a/Tests/Schema.NET.Test/ValuesJsonConverterTest.cs +++ b/Tests/Schema.NET.Test/ValuesJsonConverterTest.cs @@ -266,9 +266,9 @@ public void ReadJson_ParseValueToken_UriAsString() [Fact] public void ReadJson_ParseValueToken_RelativeUriAsString() { - var json = "{\"Property\":\"/Thing\"}"; + var json = "{\"Property\":\"thing\"}"; var result = DeserializeObject>(json); - Assert.Equal(new Uri("/Thing", UriKind.RelativeOrAbsolute), result.Value2.First()); + Assert.Equal(new Uri("thing", UriKind.Relative), result.Value2.First()); } [Fact] @@ -281,7 +281,7 @@ public void ReadJson_Values_SingleValue_ThingInterface() "\"@id\":\"https://example.com/book/1\"," + "\"name\":\"The Catcher in the Rye\"," + "\"url\":\"https://www.barnesandnoble.com/store/info/offer/JDSalinger\"," + - "\"image\":\"/images/book/1\"," + + "\"image\":\"book1.jpg\"," + "\"author\":{" + "\"@type\":\"Person\"," + "\"name\":\"J.D. Salinger\"" + @@ -294,7 +294,7 @@ public void ReadJson_Values_SingleValue_ThingInterface() Assert.Equal(new Uri("https://example.com/book/1"), ((Book)actual).Id); Assert.Equal("The Catcher in the Rye", actual.Name); Assert.Equal(new Uri("https://www.barnesandnoble.com/store/info/offer/JDSalinger"), (Uri)actual.Url!); - Assert.Equal(new Uri("/images/book/1", UriKind.RelativeOrAbsolute), (Uri)actual.Image!); + Assert.Equal(new Uri("book1.jpg", UriKind.Relative), (Uri)actual.Image!); var author = Assert.Single(actual.Author.Value2); Assert.Equal("J.D. Salinger", author.Name); }