Skip to content

Commit

Permalink
GeoWKT test dependant on git line chcekout settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Mpdreamz committed Sep 3, 2018
1 parent 5c9f9b4 commit 0d0afdb
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/Tests/Tests/QueryDsl/Geo/GeoWKTTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -284,14 +284,9 @@ public void MalformedPolygonThrowsGeoWKTException()
[U]
public void GeoWKTExceptionReturnsCorrectLineNumberAndPosition()
{
var wkt = @"POLYGON (
(100, 5)
(100, 10)
(90, 10),
(90, 5),
(100, 5)";
var wkt = "POLYGON (\n(100, 5) (100, 10) (90, 10), (90, 5), (100, 5)";
Action action = () => GeoWKTReader.Read(wkt);
action.ShouldThrow<GeoWKTException>().Which.Message.Should().Be("Expected number but found: , at line 2, position 14");
action.ShouldThrow<GeoWKTException>().Which.Message.Should().Be("Expected number but found: , at line 2, position 5");
}

}
Expand Down

0 comments on commit 0d0afdb

Please sign in to comment.