diff --git a/CHANGELOG.md b/CHANGELOG.md index 876bc19..ad00757 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed +- Changed folder structure to match the TensionDev.CoordinateSystems namespace. + + +## [v0.1.1] - 2024-12-23 +[v0.1.1](https://github.com/TensionDev/CoordinateSystems/releases/tag/v0.1.1) + +## [v0.1.0] - 2024-01-21 +[v0.1.0](https://github.com/TensionDev/CoordinateSystems/releases/tag/v0.1.0) + +### Added +- Added FromGeographicCoordinateSystem function to Geohash. ## [v0.1.0-alpha] - 2024-01-13 [v0.1.0-alpha](https://github.com/TensionDev/CoordinateSystems/releases/tag/v0.1.0-alpha) diff --git a/XUnitTestProjectCoordinateSystems/UnitTestGeocentricCoordinateSystem.cs b/TensionDev.CoordinateSystems.Tests/GeocentricCoordinateSystemTests.cs similarity index 90% rename from XUnitTestProjectCoordinateSystems/UnitTestGeocentricCoordinateSystem.cs rename to TensionDev.CoordinateSystems.Tests/GeocentricCoordinateSystemTests.cs index 2faf082..9105f52 100644 --- a/XUnitTestProjectCoordinateSystems/UnitTestGeocentricCoordinateSystem.cs +++ b/TensionDev.CoordinateSystems.Tests/GeocentricCoordinateSystemTests.cs @@ -2,15 +2,15 @@ using TensionDev.CoordinateSystems; using Xunit; -namespace XUnitTestProjectCoordinateSystems +namespace TensionDev.CoordinateSystems.Tests { - public class UnitTestGeocentricCoordinateSystem : IDisposable + public class GeocentricCoordinateSystemTests : IDisposable { private bool disposedValue; private const Int32 POSITIONAL_PRECISION = 5; - public UnitTestGeocentricCoordinateSystem() + public GeocentricCoordinateSystemTests() { } diff --git a/XUnitTestProjectCoordinateSystems/UnitTestGeographicCoordinateSystem.cs b/TensionDev.CoordinateSystems.Tests/GeographicCoordinateSystemTests.cs similarity index 97% rename from XUnitTestProjectCoordinateSystems/UnitTestGeographicCoordinateSystem.cs rename to TensionDev.CoordinateSystems.Tests/GeographicCoordinateSystemTests.cs index d3a9938..fb7d425 100644 --- a/XUnitTestProjectCoordinateSystems/UnitTestGeographicCoordinateSystem.cs +++ b/TensionDev.CoordinateSystems.Tests/GeographicCoordinateSystemTests.cs @@ -2,15 +2,15 @@ using TensionDev.CoordinateSystems; using Xunit; -namespace XUnitTestProjectCoordinateSystems +namespace TensionDev.CoordinateSystems.Tests { - public class UnitTestGeographicCoordinateSystem : IDisposable + public class GeographicCoordinateSystemTests : IDisposable { private bool disposedValue; private const Int32 POSITIONAL_PRECISION = 5; - public UnitTestGeographicCoordinateSystem() + public GeographicCoordinateSystemTests() { } diff --git a/XUnitTestProjectCoordinateSystems/UnitTestGeohash.cs b/TensionDev.CoordinateSystems.Tests/GeohashTests.cs similarity index 85% rename from XUnitTestProjectCoordinateSystems/UnitTestGeohash.cs rename to TensionDev.CoordinateSystems.Tests/GeohashTests.cs index da39fa1..426bfe7 100644 --- a/XUnitTestProjectCoordinateSystems/UnitTestGeohash.cs +++ b/TensionDev.CoordinateSystems.Tests/GeohashTests.cs @@ -2,9 +2,9 @@ using TensionDev.CoordinateSystems; using Xunit; -namespace XUnitTestProjectCoordinateSystems +namespace TensionDev.CoordinateSystems.Tests { - public class UnitTestGeohash : IDisposable + public class GeohashTests : IDisposable { private bool disposedValue; @@ -20,7 +20,7 @@ public class UnitTestGeohash : IDisposable const Double LatitudeError8 = 0.000085; const Double LongitudeError8 = 0.00017; - public UnitTestGeohash() + public GeohashTests() { } @@ -42,37 +42,13 @@ public void TestConstructorEmptyString() Assert.Throws(() => geohash = new Geohash(geohashString)); } - [Fact] - public void TestConstructorInvalidLengthString() - { - String geohashString = "u4pruydqqvjs1"; - Geohash geohash = null; - - Assert.Throws(() => geohash = new Geohash(geohashString)); - } - - [Fact] - public void TestConstructorInvalidGeohashEncoding1() - { - String geohashString = "ezs42a"; - Geohash geohash = null; - - Assert.Throws(() => geohash = new Geohash(geohashString)); - } - - [Fact] - public void TestConstructorInvalidGeohashEncoding2() - { - String geohashString = "lezs42"; - Geohash geohash = null; - - Assert.Throws(() => geohash = new Geohash(geohashString)); - } - - [Fact] - public void TestConstructorInvalidGeohashEncoding3() + [Theory] + [InlineData("u4pruydqqvjs1")] + [InlineData("ezs42a")] + [InlineData("lezs42")] + [InlineData("iezs42o")] + public void TestConstructorInvalidStrings(String geohashString) { - String geohashString = "iezs42o"; Geohash geohash = null; Assert.Throws(() => geohash = new Geohash(geohashString)); diff --git a/XUnitTestProjectCoordinateSystems/XUnitTestProjectCoordinateSystems.csproj b/TensionDev.CoordinateSystems.Tests/TensionDev.CoordinateSystems.Tests.csproj similarity index 83% rename from XUnitTestProjectCoordinateSystems/XUnitTestProjectCoordinateSystems.csproj rename to TensionDev.CoordinateSystems.Tests/TensionDev.CoordinateSystems.Tests.csproj index 1c336b9..f4eca31 100644 --- a/XUnitTestProjectCoordinateSystems/XUnitTestProjectCoordinateSystems.csproj +++ b/TensionDev.CoordinateSystems.Tests/TensionDev.CoordinateSystems.Tests.csproj @@ -1,7 +1,7 @@ - net8.0 + net8.0;net10.0 false true @@ -21,7 +21,7 @@ - + diff --git a/CoordinateSystems.sln b/TensionDev.CoordinateSystems.sln similarity index 76% rename from CoordinateSystems.sln rename to TensionDev.CoordinateSystems.sln index b7adc41..a4d2314 100644 --- a/CoordinateSystems.sln +++ b/TensionDev.CoordinateSystems.sln @@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.6.33717.318 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CoordinateSystems", "CoordinateSystems\CoordinateSystems.csproj", "{F284828B-31AC-4957-9290-36375651C571}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TensionDev.CoordinateSystems", "TensionDev.CoordinateSystems\TensionDev.CoordinateSystems.csproj", "{F284828B-31AC-4957-9290-36375651C571}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XUnitTestProjectCoordinateSystems", "XUnitTestProjectCoordinateSystems\XUnitTestProjectCoordinateSystems.csproj", "{6CF2AB26-AAA6-4B7B-9854-07318BF7BB3D}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TensionDev.CoordinateSystems.Tests", "TensionDev.CoordinateSystems.Tests\TensionDev.CoordinateSystems.Tests.csproj", "{6CF2AB26-AAA6-4B7B-9854-07318BF7BB3D}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/CoordinateSystems/GeocentricCoordinateSystem.cs b/TensionDev.CoordinateSystems/GeocentricCoordinateSystem.cs similarity index 100% rename from CoordinateSystems/GeocentricCoordinateSystem.cs rename to TensionDev.CoordinateSystems/GeocentricCoordinateSystem.cs diff --git a/CoordinateSystems/GeographicCoordinateSystem.cs b/TensionDev.CoordinateSystems/GeographicCoordinateSystem.cs similarity index 100% rename from CoordinateSystems/GeographicCoordinateSystem.cs rename to TensionDev.CoordinateSystems/GeographicCoordinateSystem.cs diff --git a/CoordinateSystems/Geohash.cs b/TensionDev.CoordinateSystems/Geohash.cs similarity index 100% rename from CoordinateSystems/Geohash.cs rename to TensionDev.CoordinateSystems/Geohash.cs diff --git a/CoordinateSystems/CoordinateSystems.csproj b/TensionDev.CoordinateSystems/TensionDev.CoordinateSystems.csproj similarity index 95% rename from CoordinateSystems/CoordinateSystems.csproj rename to TensionDev.CoordinateSystems/TensionDev.CoordinateSystems.csproj index 0be9cce..239ccaa 100644 --- a/CoordinateSystems/CoordinateSystems.csproj +++ b/TensionDev.CoordinateSystems/TensionDev.CoordinateSystems.csproj @@ -12,7 +12,7 @@ TensionDev TensionDev.CoordinateSystems A project to provide tools for conversions between Coordinate Systems. - Copyright (c) TensionDev 2021 + Copyright (c) TensionDev 2021 - 2026 GPL-3.0-or-later https://github.com/TensionDev/CoordinateSystems https://github.com/TensionDev/CoordinateSystems