File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ public void ReadJson_ParseValueToken_RelativeUriAsString()
268268 {
269269 var json = "{\" Property\" :\" /Thing\" }" ;
270270 var result = DeserializeObject < Values < string , Uri > > ( json ) ;
271- Assert . Equal ( new Uri ( "/Thing" , UriKind . Relative ) , result . Value2 . First ( ) ) ;
271+ Assert . Equal ( new Uri ( "/Thing" , UriKind . RelativeOrAbsolute ) , result . Value2 . First ( ) ) ;
272272 }
273273
274274 [ Fact ]
@@ -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 . Relative ) , ( Uri ) actual . Image ! ) ;
297+ Assert . Equal ( new Uri ( "/images/book/1" , UriKind . RelativeOrAbsolute ) , ( Uri ) actual . Image ! ) ;
298298 var author = Assert . Single ( actual . Author . Value2 ) ;
299299 Assert . Equal ( "J.D. Salinger" , author . Name ) ;
300300 }
You can’t perform that action at this time.
0 commit comments