コード例 #1
0
        public void GetDistance_distance_between_same_location_expects_zero_distance()
        {
            var distanceInKm = _src.GetDistance(_src);

            Assert.AreEqual(0, distanceInKm);
        }
コード例 #2
0
 public static int GetDistanceInMeters(this Geolocation src, Geolocation dst)
 {
     return((int)(src.GetDistance(dst) * 1000));
 }