File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/GeoJSON.Net.Tests/CoordinateReferenceSystem Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -73,14 +73,19 @@ public void Ctor_Throws_ArgumentNullExpection_When_Href_Uri_Is_Null()
7373 [ Test ]
7474 public void Ctor_Throws_ArgumentExpection_When_Href_Is_Not_Dereferencable_Uri ( )
7575 {
76+ #if NETFRAMEWORK
77+ var expected = $ "must be a dereferenceable URI{ Environment . NewLine } Parameter name: href";
78+ #else
79+ var expected = $ "must be a dereferenceable URI (Parameter 'href')";
80+ #endif
7681#if NETCOREAPP1_1
7782 System . Globalization . CultureInfo . CurrentUICulture = new System . Globalization . CultureInfo ( "en-US" ) ;
7883#else
7984 System . Threading . Thread . CurrentThread . CurrentUICulture = new System . Globalization . CultureInfo ( "en-US" ) ;
8085#endif
8186
8287 var argumentExpection = Assert . Throws < ArgumentException > ( ( ) => { var crs = new LinkedCRS ( "http://not-a-valid-<>-url" ) ; } ) ;
83- Assert . AreEqual ( $ "must be a dereferenceable URI { Environment . NewLine } Parameter name: href" , argumentExpection . Message ) ;
88+ Assert . AreEqual ( expected , argumentExpection . Message ) ;
8489 }
8590
8691 [ Test ]
You can’t perform that action at this time.
0 commit comments