Skip to content

Commit e6d5fa7

Browse files
committed
fixed failing test
1 parent 24be0a8 commit e6d5fa7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/GeoJSON.Net.Tests/CoordinateReferenceSystem/LinkedCRSTests.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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]

0 commit comments

Comments
 (0)