Exemplo n.º 1
0
        public void GetNWLocationsForCenterLocationTest()
        {
            var locations = new Location[]
            {
                new Location()
                {
                    Lat = 45.6, Lon = -110.6
                },
                new Location()
                {
                    Lat = 45.7, Lon = -110.7
                },
                new Location()
                {
                    Lat = 45.7, Lon = -110.6
                },
                new Location()
                {
                    Lat = 45.7, Lon = -110.5
                },
                new Location()
                {
                    Lat = 45.6, Lon = -110.5
                },
                new Location()
                {
                    Lat = 45.5, Lon = -110.5
                },
                new Location()
                {
                    Lat = 45.5, Lon = -110.6
                },
                new Location()
                {
                    Lat = 45.5, Lon = -110.7
                },
                new Location()
                {
                    Lat = 45.6, Lon = -110.7
                },

                /*
                 * new Location(){Lat=45.8, Lon=-110.8},
                 * new Location(){Lat=45.8, Lon=-110.7},
                 * new Location(){Lat=45.8, Lon=-110.6},
                 * new Location(){Lat=45.8, Lon=-110.5},
                 *
                 * new Location(){Lat=45.8, Lon=-110.4},
                 * new Location(){Lat=45.7, Lon=-110.4},
                 * new Location(){Lat=45.6, Lon=-110.4},
                 * new Location(){Lat=45.5, Lon=-110.4},
                 *
                 * new Location(){Lat=45.4, Lon=-110.4},
                 * new Location(){Lat=45.4, Lon=-110.5},
                 * new Location(){Lat=45.4, Lon=-110.6},
                 * new Location(){Lat=45.4, Lon=-110.7},
                 *
                 * new Location(){Lat=45.4, Lon=-110.8},
                 * new Location(){Lat=45.7, Lon=-110.8},
                 * new Location(){Lat=45.6, Lon=-110.8},
                 * new Location(){Lat=45.5, Lon=-110.8},
                 */
            };

            VerifyLocations(
                LocationUtils.GetNWLocationsForCenterLocation(new Location()
            {
                Lat = 45.515, Lon = -110.515
            }),
                locations);
        }