@@ -266,9 +266,9 @@ public void ReadJson_ParseValueToken_UriAsString()
266266 [ Fact ]
267267 public void ReadJson_ParseValueToken_RelativeUriAsString ( )
268268 {
269- var json = "{\" Property\" :\" /Thing \" }" ;
269+ var json = "{\" Property\" :\" thing \" }" ;
270270 var result = DeserializeObject < Values < string , Uri > > ( json ) ;
271- Assert . Equal ( new Uri ( "/Thing " , UriKind . RelativeOrAbsolute ) , result . Value2 . First ( ) ) ;
271+ Assert . Equal ( new Uri ( "thing " , UriKind . Relative ) , result . Value2 . First ( ) ) ;
272272 }
273273
274274 [ Fact ]
@@ -281,7 +281,7 @@ public void ReadJson_Values_SingleValue_ThingInterface()
281281 "\" @id\" :\" https://example.com/book/1\" ," +
282282 "\" name\" :\" The Catcher in the Rye\" ," +
283283 "\" url\" :\" https://www.barnesandnoble.com/store/info/offer/JDSalinger\" ," +
284- "\" image\" :\" /images/book/1 \" ," +
284+ "\" image\" :\" book1.jpg \" ," +
285285 "\" author\" :{" +
286286 "\" @type\" :\" Person\" ," +
287287 "\" name\" :\" J.D. Salinger\" " +
@@ -294,7 +294,7 @@ public void ReadJson_Values_SingleValue_ThingInterface()
294294 Assert . Equal ( new Uri ( "https://example.com/book/1" ) , ( ( Book ) actual ) . Id ) ;
295295 Assert . Equal ( "The Catcher in the Rye" , actual . Name ) ;
296296 Assert . Equal ( new Uri ( "https://www.barnesandnoble.com/store/info/offer/JDSalinger" ) , ( Uri ) actual . Url ! ) ;
297- Assert . Equal ( new Uri ( "/images/book/1 " , UriKind . RelativeOrAbsolute ) , ( Uri ) actual . Image ! ) ;
297+ Assert . Equal ( new Uri ( "book1.jpg " , UriKind . Relative ) , ( Uri ) actual . Image ! ) ;
298298 var author = Assert . Single ( actual . Author . Value2 ) ;
299299 Assert . Equal ( "J.D. Salinger" , author . Name ) ;
300300 }
0 commit comments