Skip to content

Commit 70fd191

Browse files
committed
Fix unit tests: do not mix 2D and 3D data.
1 parent 5d13b5b commit 70fd191

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

test/GeoJSON.Net.Contrib.Wkb.Test/EncodeDecodeTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,31 @@ public void EncodeDecodePointTest()
1313
Assert.Equal(point, processedPoint);
1414
}
1515

16-
[Fact(Skip = "Equal method does not seem to be working right")]
16+
[Fact]
1717
public void EncodeDecodeMultiPointTest()
1818
{
1919
var processedMultiPoint = multiPoint.ToWkb().ToGeoJSONObject<MultiPoint>();
2020

21-
Assert.Equal(multiPoint, processedMultiPoint);
21+
Assert.Equal(multiPoint, processedMultiPoint);
2222
}
2323

24-
[Fact(Skip = "Equal method does not seem to be working right")]
24+
[Fact]
2525
public void EncodeDecodeLineStringTest()
2626
{
2727
var processedLineString = lineString.ToWkb().ToGeoJSONObject<LineString>();
2828

2929
Assert.Equal(lineString, processedLineString);
3030
}
3131

32-
[Fact(Skip = "Equal method does not seem to be working right")]
32+
[Fact]
3333
public void EncodeDecodeMultiLineStringTest()
3434
{
3535
var processedMultiLineString = multiLineString.ToWkb().ToGeoJSONObject<MultiLineString>();
3636

3737
Assert.Equal(multiLineString, processedMultiLineString);
3838
}
3939

40-
[Fact(Skip = "Equal method does not seem to be working right")]
40+
[Fact]
4141
public void EncodeDecodePolygonTest()
4242
{
4343
var processedPolygon = polygon.ToWkb().ToGeoJSONObject<Polygon>();
@@ -69,7 +69,7 @@ public void EncodeDecodeMultiPolygonTest()
6969
Assert.Equal(multiPolygon, processedMultiPolygon);
7070
}
7171

72-
[Fact(Skip = "Equal method does not seem to be working right")]
72+
[Fact]
7373
public void EncodeDecodeGeometryCollectionTest()
7474
{
7575
var processedGeomCol = geomCollection.ToWkb().ToGeoJSONObject<GeometryCollection>();

test/GeoJSON.Net.Contrib.Wkb.Test/WkbConversionsTests.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,29 +27,30 @@ public WkbConversionsTests()
2727
{
2828
new Point(new Position(52.379790828551016, 5.3173828125)),
2929
new Point(new Position(52.36721467920585, 5.456085205078125)),
30-
new Point(new Position(52.303440474272755, 5.386047363281249, 4.23))
30+
new Point(new Position(52.303440474272755, 5.386047363281249))
3131
});
3232
lineString = new LineString(new List<IPosition>
3333
{
3434
new Position(52.379790828551016, 5.3173828125),
3535
new Position(52.36721467920585, 5.456085205078125),
36-
new Position(52.303440474272755, 5.386047363281249, 4.23)
36+
new Position(52.303440474272755, 5.386047363281249)
3737
});
3838
multiLineString = new MultiLineString(new List<LineString>
3939
{
4040
new LineString(new List<IPosition>
4141
{
4242
new Position(52.379790828551016, 5.3173828125),
4343
new Position(52.36721467920585, 5.456085205078125),
44-
new Position(52.303440474272755, 5.386047363281249, 4.23)
44+
new Position(52.303440474272755, 5.386047363281249)
4545
}),
4646
new LineString(new List<IPosition>
4747
{
4848
new Position(52.379790828551016, 5.3273828125),
4949
new Position(52.36721467920585, 5.486085205078125),
50-
new Position(52.303440474272755, 5.426047363281249, 4.23)
50+
new Position(52.303440474272755, 5.426047363281249)
5151
})
5252
});
53+
5354
/*
5455
* POLYGON (
5556
* new Position(5.6718750056992775 43.179268827576763),
@@ -125,7 +126,7 @@ public WkbConversionsTests()
125126
new LineString(new List<Position>
126127
{
127128
new Position(52.379790828551016, 5.3173828125),
128-
new Position(52.303440474272755, 5.386047363281249, 4.23),
129+
new Position(52.303440474272755, 5.386047363281249),
129130
new Position(52.36721467920585, 5.456085205078125),
130131
new Position(52.379790828551016, 5.3173828125)
131132
})

0 commit comments

Comments
 (0)