Exemplo n.º 1
0
        public void ToNumberSmallZ()
        {
            GeoCoordinate coord = new GeodeticCoordinate(Locations.TokyoGeodeticLongitude,
                                                         Locations.TokyoGeodeticLatitude);

            Assert.Throws <ArgumentOutOfRangeException>(() =>
            {
                Number num = coord.ToNumber(-1, Tile.DefaultSize, false);
            });
        }
Exemplo n.º 2
0
        public void ToNumberNormal()
        {
            GeoCoordinate coord = new GeodeticCoordinate(Locations.TokyoGeodeticLongitude,
                                                         Locations.TokyoGeodeticLatitude);

            Assert.DoesNotThrow(() =>
            {
                Number num = coord.ToNumber(10, Tile.DefaultSize, false);
            });
        }