diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index c5ea4d7..9e61697 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -19,11 +19,14 @@ jobs: build: name: 'Build and Test' - runs-on: ubuntu-latest - + runs-on: windows-latest + + env: + VSTEST_CONNECTION_TIMEOUT: 900 + steps: - - uses: actions/checkout@v2 - - name: Setup .NET + - uses: actions/checkout@v2 + - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: dotnet-version: | diff --git a/src/GeoJSON.Text.Test.Unit/CoordinateReferenceSystem/DefaultCrsTests.cs b/src/GeoJSON.Text.Test.Unit/CoordinateReferenceSystem/DefaultCrsTests.cs index d7aba43..3ed6005 100644 --- a/src/GeoJSON.Text.Test.Unit/CoordinateReferenceSystem/DefaultCrsTests.cs +++ b/src/GeoJSON.Text.Test.Unit/CoordinateReferenceSystem/DefaultCrsTests.cs @@ -44,8 +44,8 @@ public void Can_Deserialize_CRS_issue_89() public void Can_Serialize_CRS_issue_89() { var expected = - "{\"type\":\"Point\",\"coordinates\":[34.56,12.34],\"crs\":{\"properties\":{\"name\":\"TEST NAME\"},\"type\":\"name\"}}"; - var point = new Point(new Position(12.34, 34.56)) { CRS = new NamedCRS("TEST NAME") }; + "{\"type\":\"Point\",\"coordinates\":[34.57,12.35],\"crs\":{\"properties\":{\"name\":\"TEST NAME\"},\"type\":\"name\"}}"; + var point = new Point(new Position(12.35, 34.57)) { CRS = new NamedCRS("TEST NAME") }; var json = JsonSerializer.Serialize(point); @@ -57,8 +57,8 @@ public void Can_Serialize_CRS_issue_89() public void Can_Serialize_DefaultCRS_issue_89() { var expected = - "{\"type\":\"Point\",\"coordinates\":[34.56,12.34],\"crs\":{\"properties\":{\"name\":\"urn:ogc:def:crs:OGC::CRS84\"},\"type\":\"name\"}}"; - var point = new Point(new Position(12.34, 34.56)) { CRS = new NamedCRS("urn:ogc:def:crs:OGC::CRS84") }; + "{\"type\":\"Point\",\"coordinates\":[34.57,12.35],\"crs\":{\"properties\":{\"name\":\"urn:ogc:def:crs:OGC::CRS84\"},\"type\":\"name\"}}"; + var point = new Point(new Position(12.35, 34.57)) { CRS = new NamedCRS("urn:ogc:def:crs:OGC::CRS84") }; var json = JsonSerializer.Serialize(point); diff --git a/src/GeoJSON.Text.Test.Unit/GeoJSON.Text.Test.Unit.csproj b/src/GeoJSON.Text.Test.Unit/GeoJSON.Text.Test.Unit.csproj index 581ae1c..d2ce97c 100644 --- a/src/GeoJSON.Text.Test.Unit/GeoJSON.Text.Test.Unit.csproj +++ b/src/GeoJSON.Text.Test.Unit/GeoJSON.Text.Test.Unit.csproj @@ -4,7 +4,7 @@ {6C93B314-9208-4684-B873-172F7EC81689} GeoJSON.Text.Tests GeoJSON.Text.Tests - netcoreapp3.1;net5;net6 + net462;netcoreapp3.1;net5;net6 false @@ -66,6 +66,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/src/GeoJSON.Text/GeoJSON.Text.csproj b/src/GeoJSON.Text/GeoJSON.Text.csproj index 43bb156..0817c6a 100644 --- a/src/GeoJSON.Text/GeoJSON.Text.csproj +++ b/src/GeoJSON.Text/GeoJSON.Text.csproj @@ -23,6 +23,7 @@ true ../key.snk false +