예제 #1
0
        public void BboxIntilizationUserString()
        {
            string expected = "bbox=";
            Bbox   Bbox     = new Bbox("UserString");

            expected += "UserString";
            Assert.AreEqual(expected, Bbox.GetPartUrl());
        }
예제 #2
0
        public void BboxGetPartUrlStandart2()
        {
            Bbox Bbox = new Bbox(latTopLeft, lonTopLeft, latDownRigth, lonDownRigth);

            string result = $"bbox={Bbox.TopLeftPointLon.ToString().Replace(',', '.')}" +
                            $",{Bbox.TopLeftPointLat.ToString().Replace(',', '.')}~" +
                            $"{Bbox.DownRightPointLon.ToString().Replace(',', '.')}" +
                            $",{Bbox.DownRightPointLat.ToString().Replace(',', '.')}";

            Assert.AreEqual(result, Bbox.GetPartUrl());
        }