Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -20,7 +20,7 @@ public class UnitTestGeohash : IDisposable
const Double LatitudeError8 = 0.000085;
const Double LongitudeError8 = 0.00017;

public UnitTestGeohash()
public GeohashTests()
{
}

Expand All @@ -42,37 +42,13 @@ public void TestConstructorEmptyString()
Assert.Throws<ArgumentNullException>(() => geohash = new Geohash(geohashString));
}

[Fact]
public void TestConstructorInvalidLengthString()
{
String geohashString = "u4pruydqqvjs1";
Geohash geohash = null;

Assert.Throws<ArgumentException>(() => geohash = new Geohash(geohashString));
}

[Fact]
public void TestConstructorInvalidGeohashEncoding1()
{
String geohashString = "ezs42a";
Geohash geohash = null;

Assert.Throws<ArgumentException>(() => geohash = new Geohash(geohashString));
}

[Fact]
public void TestConstructorInvalidGeohashEncoding2()
{
String geohashString = "lezs42";
Geohash geohash = null;

Assert.Throws<ArgumentException>(() => 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<ArgumentException>(() => geohash = new Geohash(geohashString));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>

<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
Expand All @@ -21,7 +21,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\CoordinateSystems\CoordinateSystems.csproj" />
<ProjectReference Include="..\TensionDev.CoordinateSystems\TensionDev.CoordinateSystems.csproj" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions CoordinateSystems.sln → TensionDev.CoordinateSystems.sln
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<Company>TensionDev</Company>
<Product>TensionDev.CoordinateSystems</Product>
<Description>A project to provide tools for conversions between Coordinate Systems.</Description>
<Copyright>Copyright (c) TensionDev 2021</Copyright>
<Copyright>Copyright (c) TensionDev 2021 - 2026</Copyright>
<PackageLicenseExpression>GPL-3.0-or-later</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/TensionDev/CoordinateSystems</PackageProjectUrl>
<RepositoryUrl>https://github.com/TensionDev/CoordinateSystems</RepositoryUrl>
Expand Down