public void AsDms_IsAbleToProduceCorrectOutput_GivenParameterizedAsAndLocalization() { GeoPoint geoPoint = GeoPoint.Parse(46.414167, 6.927500); Assert.AreEqual(geoPoint.AsDms(CultureInfo.GetCultureInfo("de")), geoPoint.As(GeoPointFormat.DegreesMinutesSeconds, CultureInfo.GetCultureInfo("de"))); }
public void AsDms_IsAbleToProduceCorrectOutput_GivenParameterizedAs() { GeoPoint geoPoint = GeoPoint.Parse(46.414167, 6.927500); Assert.AreEqual(geoPoint.AsDms(), geoPoint.As(GeoPointFormat.DMS)); Assert.AreEqual(geoPoint.As(GeoPointFormat.DMS), geoPoint.As(GeoPointFormat.DegreesMinutesSeconds)); }
public void AsDms_IsAbleToProduceLocalizedOutput() { GeoPoint geoPoint = GeoPoint.Parse(-33.855270, 151.209725); Assert.AreEqual("S33° 51' 18,972\" E151° 12' 35,01\"", geoPoint.AsDms(CultureInfo.GetCultureInfo("de"))); }
public void AsDms_ConvertsCoordinatesCorrectly_GivenZeroedCoordinates() { GeoPoint geoPoint = GeoPoint.Parse(0, 0); Assert.AreEqual("0° 0' 0\" 0° 0' 0\"", geoPoint.AsDms()); }
public void AsDms_ConvertsCoordinatesCorrectly_GivenSWCoordinates() { GeoPoint geoPoint = GeoPoint.Parse(-14.170074, -141.236336); Assert.AreEqual("S14° 10' 12.266\" W141° 14' 10.81\"", geoPoint.AsDms()); }
public void AsDms_ConvertsCoordinatesCorrectly_GivenNWCoordinates() { GeoPoint geoPoint = GeoPoint.Parse(50.116973, -122.945424); Assert.AreEqual("N50° 7' 1.103\" W122° 56' 43.526\"", geoPoint.AsDms()); }
public void AsDms_ConvertsCoordinatesCorrectly_GivenSECoordinates() { GeoPoint geoPoint = GeoPoint.Parse(-33.855270, 151.209725); Assert.AreEqual("S33° 51' 18.972\" E151° 12' 35.01\"", geoPoint.AsDms()); }
public void AsDms_ConvertsCoordinatesCorrectly_GivenNECoordinates() { GeoPoint geoPoint = GeoPoint.Parse(46.414167, 6.927500); Assert.AreEqual("N46° 24' 51.001\" E6° 55' 39\"", geoPoint.AsDms()); }