Example #1
0
 public void TestOverrides()
 {
     Location location = new Location() { Latitude = TestLatitude, Longitude = TestLongitude };
     Assert.AreEqual(string.Format(CultureInfo.InvariantCulture, Location.LocationFormat, location.Latitude, location.Longitude), location.ToString(), "Expected format to be the same");
     Assert.IsNotNull(location.GetHashCode(), "Expected a hash code");
     Assert.IsFalse(location.Equals(TestLatitude), "Expected inequality");
 }